smtp: rset command resets bdat chunks length

Fixes #1860
pull/3810/head
Philippe Antoine 7 years ago committed by Victor Julien
parent ff52bb14b7
commit 43e205fc32

@ -1275,6 +1275,11 @@ static int SMTPProcessRequest(SMTPState *state, Flow *f,
SCReturnInt(-1);
}
state->current_command = SMTP_COMMAND_OTHER_CMD;
} else if (state->current_line_len >= 4 &&
SCMemcmpLowercase("rset", state->current_line, 4) == 0) {
// Resets chunk index in case of connection reuse
state->bdat_chunk_idx = 0;
state->curr_tx->done = 1;
} else {
state->current_command = SMTP_COMMAND_OTHER_CMD;
}

Loading…
Cancel
Save