From 686586b0f934ce3f63f6bec54932dc2d7f8bf3fa Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Tue, 16 Apr 2013 19:35:09 +0100 Subject: smtp: Moved smtp_quit() to be with the other perform functions --- lib/smtp.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'lib/smtp.c') diff --git a/lib/smtp.c b/lib/smtp.c index fd0b746d9..4d5061dd7 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -590,6 +590,25 @@ static CURLcode smtp_rcpt_to(struct connectdata *conn) 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 */ static CURLcode smtp_state_servergreet_resp(struct connectdata *conn, int smtpcode, @@ -1494,25 +1513,6 @@ static CURLcode smtp_do(struct connectdata *conn, bool *done) 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() -- cgit v1.2.3