No longer fail tracking the SMTP stream when a unexpected reply is
encountered.
Do not store the unexpected reply.
state->parser_state |= SMTP_PARSER_STATE_FIRST_REPLY_SEEN;
if (reply_code == SMTP_REPLY_220)
SCReturnInt(0);
- else
+ else {
SMTPSetEvent(state, SMTP_DECODER_EVENT_INVALID_REPLY);
+ SCReturnInt(0);
+ }
} else {
/* decoder event - unable to match reply with request */
SCLogDebug("unable to match reply with request");
- SCReturnInt(-1);
+ SCReturnInt(0);
}
}