aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-10-20 12:58:26 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-10-20 13:12:02 +0200
commit4fa01661739eaa2fd91f618df660662ef3f886f8 (patch)
tree4a7c009e321b50083a0ec87951dced49f0fdcabf /lib
parentadaa3f6e141ae4e721fb2d426a9b7a181ffb4fb8 (diff)
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!
Diffstat (limited to 'lib')
-rw-r--r--lib/smtp.c4
1 files 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;
}