From: Daniel Stenberg Date: Thu, 20 Oct 2011 10:58:26 +0000 (+0200) Subject: Curl_smtp_escape_eob: first byte is index 0... X-Git-Tag: curl-7_23_0~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fa01661739eaa2fd91f618df660662ef3f886f8;p=thirdparty%2Fcurl.git Curl_smtp_escape_eob: first byte is index 0... Fix a bug with with commit 2621dd42a4d that happened due to my last second pre-commit cleanup of the change without proper testing afterwards! --- diff --git a/lib/smtp.c b/lib/smtp.c index 9a34a05f76..f85f9c4336 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -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; }