From 4fa01661739eaa2fd91f618df660662ef3f886f8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 20 Oct 2011 12:58:26 +0200 Subject: 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! --- lib/smtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/smtp.c b/lib/smtp.c index 9a34a05f7..f85f9c433 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; } -- cgit v1.2.3