aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-04-15 20:11:25 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-04-15 20:27:47 +0100
commit651254dcc713d0f53375f8abc0885a8d2ba0389f (patch)
tree7d441d0725a50c7e2e38a79e4384b26c262aaa9b
parent26bdafcbf9cd8b7c051eb1832c90b8e2cfbe670c (diff)
smtp: Updated the coding style of smtp_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.
-rw-r--r--lib/smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 49da078ef..fd86a95ba 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -509,10 +509,10 @@ static CURLcode smtp_state_servergreet_resp(struct connectdata *conn,
if(smtpcode/100 != 2) {
failf(data, "Got unexpected smtp-server response: %d", smtpcode);
- return CURLE_FTP_WEIRD_SERVER_REPLY;
+ result = CURLE_FTP_WEIRD_SERVER_REPLY;
}
-
- result = smtp_state_ehlo(conn);
+ else
+ result = smtp_state_ehlo(conn);
return result;
}