Curl_smtp_escape_eob: first byte is index 0...

Fix a bug with with commit 2621dd42a4 that happened due to my last
second pre-commit cleanup of the change without proper testing
afterwards!
This commit is contained in:
Daniel Stenberg 2011-10-20 12:58:26 +02:00
parent adaa3f6e14
commit 4fa0166173
1 changed files with 2 additions and 2 deletions

View File

@ -1671,8 +1671,8 @@ CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread)
si += smtpc->eob;
/* then compare the first byte */
if(SMTP_EOB[smtpc->eob] == data->req.upload_fromhere[i])
smtpc->eob=1;
if(SMTP_EOB[0] == data->req.upload_fromhere[i])
smtpc->eob = 1;
else
smtpc->eob = 0;
}