From 15aa501bc8d4a310bd2ad468adf48eebb323ca78 Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 23 Aug 2016 07:31:42 +0200 Subject: [PATCH] protocol fix for bdat Change-Id: I8396b2988e190d99934753da66dcb3165ed4af2b Signed-off-by: SJ --- src/smtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smtp.c b/src/smtp.c index c23cf009..505bf410 100644 --- a/src/smtp.c +++ b/src/smtp.c @@ -62,7 +62,7 @@ void process_command_starttls(struct session_ctx *sctx, struct session_data *sda void process_command_mail_from(struct session_data *sdata, int *protocol_state, char *buf, char *resp, int resplen, struct __config *cfg){ - if(*protocol_state != SMTP_STATE_HELO && *protocol_state != SMTP_STATE_PERIOD){ + if(*protocol_state != SMTP_STATE_HELO && *protocol_state != SMTP_STATE_PERIOD && *protocol_state != SMTP_STATE_BDAT){ strncat(resp, SMTP_RESP_503_ERR, resplen); } else {