]> granicus.if.org Git - curl/commitdiff
imap: Updated the coding style of imap_state_servergreet_resp()
authorSteve Holme <steve_holme@hotmail.com>
Wed, 27 Feb 2013 21:00:35 +0000 (21:00 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 27 Feb 2013 21:00:35 +0000 (21:00 +0000)
Updated the coding style, in this function, to be consistant with other
response functions rather then performing a hard return on failure.

lib/imap.c

index ae2fd4102e1358dd29f747fde7077743322b1287..27c6a05656583b7adff199ad48709922bbd6e816 100644 (file)
@@ -730,10 +730,10 @@ static CURLcode imap_state_servergreet_resp(struct connectdata *conn,
 
   if(imapcode != 'O') {
     failf(data, "Got unexpected imap-server response");
-    return CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: fix this code */
+    result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: fix this code */
   }
-
-  result = imap_state_capability(conn);
+  else
+    result = imap_state_capability(conn);
 
   return result;
 }