smtp: check if there is a transaction to close

Ticket: 4948

When parsing the response for starttls
pull/7172/head
Philippe Antoine 4 years ago committed by Victor Julien
parent 68fa080069
commit 99b3443369

@ -928,7 +928,9 @@ static int SMTPProcessReply(SMTPState *state, Flow *f,
/* we are entering STARRTTLS data mode */
state->parser_state |= SMTP_PARSER_STATE_COMMAND_DATA_MODE;
AppLayerRequestProtocolTLSUpgrade(f);
SMTPTransactionComplete(state);
if (state->curr_tx) {
SMTPTransactionComplete(state);
}
} else {
/* decoder event */
SMTPSetEvent(state, SMTP_DECODER_EVENT_TLS_REJECTED);

Loading…
Cancel
Save