pop3: Updated the coding style of pop3_state_servergreet_resp()
authorSteve Holme <steve_holme@hotmail.com>
Mon, 15 Apr 2013 19:10:25 +0000 (20:10 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Mon, 15 Apr 2013 19:27:45 +0000 (20:27 +0100)
Updated the coding style, in this function, to be consistent with other
response functions rather then performing a hard return on failure.

lib/pop3.c

index 7d926c3..dfd8edc 100644 (file)
@@ -700,10 +700,10 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn,
 
   if(pop3code != '+') {
     failf(data, "Got unexpected pop3-server response");
-    return CURLE_FTP_WEIRD_SERVER_REPLY;
+    result = CURLE_FTP_WEIRD_SERVER_REPLY;
   }
-
-  result = pop3_perform_capa(conn);
+  else
+    result = pop3_perform_capa(conn);
 
   return result;
 }