diff options
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) |