diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-02-27 21:00:35 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-02-27 21:00:35 +0000 |
commit | 1d86d813c3dc246b16fdf7242862e17594d9ef5e (patch) | |
tree | c81bf4b8b34681fd22d86d8d92e614318d893950 /lib | |
parent | f53ed631b325c82097d3511c44671348d178882f (diff) |
imap: Updated the coding style of imap_state_servergreet_resp()
Updated the coding style, in this function, to be consistant with other
response functions rather then performing a hard return on failure.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/imap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/imap.c b/lib/imap.c index ae2fd4102..27c6a0565 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -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; } |