summaryrefslogtreecommitdiffstats
path: root/debian/patches/84_29-Fix-BDAT-issue-for-body-w-o-trailing-CRLF-again-Bug-.patch
blob: f5965ab7b2b17078466c6adfc9826961c1968bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 5220dc30120bd79319d465bd7a6e4b21a0881f9a Mon Sep 17 00:00:00 2001
From: "Heiko Schlittermann (HS12-RIPE)" <hs@schlittermann.de>
Date: Fri, 30 Apr 2021 10:47:45 +0200
Subject: [PATCH 29/29] Fix BDAT issue for body w/o trailing CRLF (again Bug
 1974)

(cherry picked from commit 919111edac911ba9c15422eafd7c5bf14d416d26)
---
 src/smtp_in.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/smtp_in.c b/src/smtp_in.c
index 016c44c0f..76784c15f 100644
--- a/src/smtp_in.c
+++ b/src/smtp_in.c
@@ -854,6 +854,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);
 }
 
-- 
2.30.2