diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-04-28 12:20:51 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-04-28 12:26:44 +0100 |
commit | 1d7c38e1f06710338db5f29e67d6dff668747aca (patch) | |
tree | 4ce45e189624564d577872d9f40a141ce6aabd0b /lib | |
parent | 18bfc8f2d7bb707c65065760d2dd134e5cf110ff (diff) |
smtp: Updated limit check to be more readable like the check in pop3
Diffstat (limited to 'lib')
-rw-r--r-- | lib/smtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index 3e8441953..72b3bbf6a 100644 --- 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) |