protocol fix for bdat

Change-Id: I8396b2988e190d99934753da66dcb3165ed4af2b
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-08-23 07:31:42 +02:00
parent ffa734572b
commit 15aa501bc8

View File

@ -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){ 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); strncat(resp, SMTP_RESP_503_ERR, resplen);
} }
else { else {