SECURITY: Leave a clean smtp_out input buffer even in case of read error
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Tue, 30 Mar 2021 20:48:06 +0000 (22:48 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 27 May 2021 19:30:55 +0000 (21:30 +0200)
commit60482d5517a46f8ee1629f58b39e6897b9b27a98
treee78a7036cc4d5a35d1b5e60f5f24acedb628760e
parent6f97d821f13060b234c3d272d7672558bb2365ae
SECURITY: Leave a clean smtp_out input buffer even in case of read error

Based on Heiko Schlittermann's commit 54895bc3. This fixes:

7/ In src/smtp_out.c, read_response_line(), inblock->ptr is not updated
when -1 is returned. This does not seem to have bad consequences, but is
maybe not the intended behavior.

(cherry picked from commit 30f5d98786fb4e6ccfdd112fe65c153f0ee34c5f)
(cherry picked from commit d600f6c4d0c5d33e3988dfbfee248ff6a1536673)
src/src/smtp_out.c