aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-04-16 19:35:09 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-04-16 19:44:52 +0100
commit686586b0f934ce3f63f6bec54932dc2d7f8bf3fa (patch)
tree378bd472ea4661bab8380aac95e25266f50694d3
parente621a5f6ea12266feb62531099f0c8cf763eb68f (diff)
smtp: Moved smtp_quit() to be with the other perform functions
-rw-r--r--lib/smtp.c38
1 files changed, 19 insertions, 19 deletions
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,
@@ -1496,25 +1515,6 @@ static CURLcode smtp_do(struct connectdata *conn, bool *done)
/***********************************************************************
*
- * 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()
*
* Disconnect from an SMTP server. Cleanup protocol-specific per-connection