diff --git a/src/app-layer-smtp.c b/src/app-layer-smtp.c index 2ef8eea6c0..955dfdb9f7 100644 --- a/src/app-layer-smtp.c +++ b/src/app-layer-smtp.c @@ -939,7 +939,7 @@ 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->curr_tx && !(state->parser_state & SMTP_PARSER_STATE_PARSING_MULTILINE_REPLY)) { SMTPTransactionComplete(state); }