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:
18bfc8f
)
smtp: Updated limit check to be more readable like the check in pop3
author
Steve Holme
<steve_holme@hotmail.com>
Sun, 28 Apr 2013 11:20:51 +0000
(12:20 +0100)
committer
Steve Holme
<steve_holme@hotmail.com>
Sun, 28 Apr 2013 11:26:44 +0000
(12:26 +0100)
lib/smtp.c
patch
|
blob
|
history
diff --git
a/lib/smtp.c
b/lib/smtp.c
index
3e84419
..
72b3bbf
100644
(file)
--- a/
lib/smtp.c
+++ b/
lib/smtp.c
@@
-527,7
+527,7
@@
static CURLcode smtp_perform_authenticate(struct connectdata *conn)
if(!result) {
/* Perform SASL based authentication */
if(initresp &&
-
strlen(mech) + len <= 512 - 8
) { /* AUTH <mech> ...<crlf> */
+
8 + strlen(mech) + len <= 512
) { /* AUTH <mech> ...<crlf> */
result = Curl_pp_sendf(&smtpc->pp, "AUTH %s %s", mech, initresp);
if(!result)