smtp: Moved smtp_quit() to be with the other perform functions
authorSteve Holme <steve_holme@hotmail.com>
Tue, 16 Apr 2013 18:35:09 +0000 (19:35 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 16 Apr 2013 18:44:52 +0000 (19:44 +0100)
lib/smtp.c

index fd0b746d992b1fc72995f319a75c8b5f286580c9..4d5061dd7d83d8b5faf91f02480f7504fafd9ec2 100644 (file)
@@ -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()