projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26bdafc
)
smtp: Updated the coding style of smtp_state_servergreet_resp()
author
Steve Holme
<steve_holme@hotmail.com>
Mon, 15 Apr 2013 19:11:25 +0000
(20:11 +0100)
committer
Steve Holme
<steve_holme@hotmail.com>
Mon, 15 Apr 2013 19:27:47 +0000
(20:27 +0100)
Updated the coding style, in this function, to be consistant with other
response functions rather then performing a hard return on failure.
lib/smtp.c
patch
|
blob
|
history
diff --git
a/lib/smtp.c
b/lib/smtp.c
index
49da078
..
fd86a95
100644
(file)
--- 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);
- re
turn
CURLE_FTP_WEIRD_SERVER_REPLY;
+ re
sult =
CURLE_FTP_WEIRD_SERVER_REPLY;
}
-
- result = smtp_state_ehlo(conn);
+ else
+
result = smtp_state_ehlo(conn);
return result;
}