smtp: Moved smtp_quit() to be with the other perform functions
This commit is contained in:
parent
e621a5f6ea
commit
686586b0f9
38
lib/smtp.c
38
lib/smtp.c
@ -590,6 +590,25 @@ static CURLcode smtp_rcpt_to(struct connectdata *conn)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
*
|
||||||
|
* smtp_quit()
|
||||||
|
*
|
||||||
|
* Performs the quit action prior to sclose() being called.
|
||||||
|
*/
|
||||||
|
static CURLcode smtp_quit(struct connectdata *conn)
|
||||||
|
{
|
||||||
|
CURLcode result = CURLE_OK;
|
||||||
|
|
||||||
|
/* Send the QUIT command */
|
||||||
|
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "QUIT");
|
||||||
|
|
||||||
|
if(!result)
|
||||||
|
state(conn, SMTP_QUIT);
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/* For the initial server greeting */
|
/* For the initial server greeting */
|
||||||
static CURLcode smtp_state_servergreet_resp(struct connectdata *conn,
|
static CURLcode smtp_state_servergreet_resp(struct connectdata *conn,
|
||||||
int smtpcode,
|
int smtpcode,
|
||||||
@ -1494,25 +1513,6 @@ static CURLcode smtp_do(struct connectdata *conn, bool *done)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
*
|
|
||||||
* smtp_quit()
|
|
||||||
*
|
|
||||||
* Performs the quit action prior to sclose() being called.
|
|
||||||
*/
|
|
||||||
static CURLcode smtp_quit(struct connectdata *conn)
|
|
||||||
{
|
|
||||||
CURLcode result = CURLE_OK;
|
|
||||||
|
|
||||||
/* Send the QUIT command */
|
|
||||||
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "QUIT");
|
|
||||||
|
|
||||||
if(!result)
|
|
||||||
state(conn, SMTP_QUIT);
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
*
|
*
|
||||||
* smtp_disconnect()
|
* smtp_disconnect()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user