smtp: completes RSET transaction on last multiline

Bug: #4561.
pull/6620/head
Philippe Antoine 4 years ago committed by Victor Julien
parent f211a330dd
commit f44bbbb9ad

@ -1060,7 +1060,8 @@ static int SMTPProcessReply(SMTPState *state, Flow *f,
SMTPSetEvent(state, SMTP_DECODER_EVENT_DATA_COMMAND_REJECTED);
}
} else if (IsReplyToCommand(state, SMTP_COMMAND_RSET)) {
if (reply_code == SMTP_REPLY_250) {
if (reply_code == SMTP_REPLY_250 &&
!(state->parser_state & SMTP_PARSER_STATE_PARSING_MULTILINE_REPLY)) {
SMTPTransactionComplete(state);
}
} else {

Loading…
Cancel
Save