Commit 4fa01661 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Curl_smtp_escape_eob: first byte is index 0...

Fix a bug with with commit 2621dd42 that happened due to my last
second pre-commit cleanup of the change without proper testing
afterwards!
parent adaa3f6e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1671,7 +1671,7 @@ CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread)
      si += smtpc->eob;
      si += smtpc->eob;


      /* then compare the first byte */
      /* then compare the first byte */
      if(SMTP_EOB[smtpc->eob] == data->req.upload_fromhere[i])
      if(SMTP_EOB[0] == data->req.upload_fromhere[i])
        smtpc->eob = 1;
        smtpc->eob = 1;
      else
      else
        smtpc->eob = 0;
        smtpc->eob = 0;