]> granicus.if.org Git - curl/commitdiff
smtp: Removed duplicate pingpong structure initialisation
authorSteve Holme <steve_holme@hotmail.com>
Wed, 13 Feb 2013 18:22:20 +0000 (18:22 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 13 Feb 2013 18:22:20 +0000 (18:22 +0000)
The smtp_connect() function was setting the member variables of the
pingpong structure twice, once before calling Curl_pp_init() and once
after!

lib/smtp.c

index 456d986aad5153769520fb87a623a6299d970940..ad265f8924ab75ede3db30ee1d846eea77548241 100644 (file)
@@ -1347,12 +1347,6 @@ static CURLcode smtp_connect(struct connectdata *conn, bool *done)
   /* Initialise the response reader stuff */
   Curl_pp_init(pp);
 
-  /* Set the default response time-out */
-  pp->response_time = RESP_TIMEOUT;
-  pp->statemach_act = smtp_statemach_act;
-  pp->endofresp = smtp_endofresp;
-  pp->conn = conn;
-
   /* Calculate the path if necessary */
   if(!*path) {
     if(!Curl_gethostname(localhost, sizeof(localhost)))