X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/4090d62a4b25782129cc1643596dc2f6e8f63bde..4804c62909a62a3ac12ec4777ebd48c541028965:/src/src/smtp_in.c diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 1b45f84d9..02075404d 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -4955,16 +4955,23 @@ while (done <= 0) DEBUG(D_receive) debug_printf("chunking state %d, %d bytes\n", (int)chunking_state, chunking_data_left); + /* push the current receive_* function on the "stack", and + replace them by bdat_getc(), which in turn will use the lwr_receive_* + functions to do the dirty work. */ lwr_receive_getc = receive_getc; lwr_receive_ungetc = receive_ungetc; + receive_getc = bdat_getc; receive_ungetc = bdat_ungetc; + dot_ends = FALSE; + goto DATA_BDAT; } case DATA_CMD: HAD(SCH_DATA); + dot_ends = TRUE; DATA_BDAT: /* Common code for DATA and BDAT */ if (!discarded && recipients_count <= 0)