diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-02-12 16:44:09 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-02-12 16:44:09 +0000 |
commit | 79de4f370f306869887e1714ff4ecef5bfc93fa5 (patch) | |
tree | bca48ce9632345ee7a31914e18e6efe9511013d7 /src | |
parent | 398f9af3b35c79d142dcbfd7b56758eea88c8f43 (diff) |
DKIM: fix crash with a verification when dkim disabled, under CHUNKING
Diffstat (limited to 'src')
-rw-r--r-- | src/src/smtp_in.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 6963e7da2..db684a646 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -486,12 +486,17 @@ uschar * log_msg; for(;;) { +#ifndef DISABLE_DKIM + BOOL dkim_save; +#endif + if (chunking_data_left > 0) return lwr_receive_getc(chunking_data_left--); receive_getc = lwr_receive_getc; receive_ungetc = lwr_receive_ungetc; #ifndef DISABLE_DKIM + dkim_save = dkim_collect_input; dkim_collect_input = FALSE; #endif @@ -592,7 +597,7 @@ next_cmd: receive_getc = bdat_getc; receive_ungetc = bdat_ungetc; #ifndef DISABLE_DKIM - dkim_collect_input = TRUE; + dkim_collect_input = dkim_save; #endif break; /* to top of main loop */ } |