]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Curl_smtp_escape_eob: first byte is index 0...
authorDaniel Stenberg <daniel@haxx.se>
Thu, 20 Oct 2011 10:58:26 +0000 (12:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 20 Oct 2011 11:12:02 +0000 (13:12 +0200)
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

index 9a34a05f76522ba6eb50ee244875b4601dc82ab0..f85f9c433670e21ab45a92cba5963d607b7c95ba 100644 (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;
     }