SECURITY: smtp_out: Leave a clean input buffer, even in case of read error
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Wed, 2 Dec 2020 21:28:02 +0000 (22:28 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Tue, 27 Apr 2021 22:40:34 +0000 (00:40 +0200)
commit13f9998ebb937970d1d9d18f205a6e03e14105b4
treec97e761b4164850f3d5eab4b1d92a9a3eec08bd3
parent667fb25b8f0dc3fbac57bce4051e345555fa776a
SECURITY: smtp_out: Leave a clean input buffer, even in case of read error

Credits: Qualys

  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 f7ac5a7d1e817bf60f161e7a1d40b65d66da607f)
src/src/smtp_out.c