mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
smtp: Removed duplicate pingpong structure initialisation
The smtp_connect() function was setting the member variables of the pingpong structure twice, once before calling Curl_pp_init() and once after!
This commit is contained in:
parent
cc8fad9a7f
commit
0c6fa0dd64
@ -1347,12 +1347,6 @@ static CURLcode smtp_connect(struct connectdata *conn, bool *done)
|
|||||||
/* Initialise the response reader stuff */
|
/* Initialise the response reader stuff */
|
||||||
Curl_pp_init(pp);
|
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 */
|
/* Calculate the path if necessary */
|
||||||
if(!*path) {
|
if(!*path) {
|
||||||
if(!Curl_gethostname(localhost, sizeof(localhost)))
|
if(!Curl_gethostname(localhost, sizeof(localhost)))
|
||||||
|
Loading…
Reference in New Issue
Block a user