Fix BDAT issue for body w/o trailing CRLF (again Bug 1974)
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Fri, 30 Apr 2021 08:47:45 +0000 (10:47 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 27 May 2021 19:31:03 +0000 (21:31 +0200)
(cherry picked from commit 919111edac911ba9c15422eafd7c5bf14d416d26)

src/src/smtp_in.c

index 647c231c71983dde63b2093bad5d2dbd136a4a24..8e9b93ab39becb029e42667b79dd346ded61539e 100644 (file)
@@ -843,6 +843,7 @@ int
 bdat_ungetc(int ch)
 {
 chunking_data_left++;
+bdat_push_receive_functions();  /* we're not done yet, calling push is safe, because it checks the state before pushing anything */
 return lwr_receive_ungetc(ch);
 }