Skip to content
Snippets Groups Projects
Commit 1d7c38e1 authored by Steve Holme's avatar Steve Holme
Browse files

smtp: Updated limit check to be more readable like the check in pop3

parent 18bfc8f2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment