ssl: reset state when breaking out of SSLV3_HANDSHAKE_PROTOCOL

So that we cannot resumt it with corrupted values
pull/5948/head
Philippe Antoine 4 years ago committed by Victor Julien
parent 89030d3e59
commit eb460cf78d

@ -2371,6 +2371,8 @@ static int SSLv3Decode(uint8_t direction, SSLState *ssl_state,
((ssl_state->flags & SSL_AL_FLAG_STATE_SERVER_HELLO) == 0)) {
/* do nothing */
} else {
// if we started parsing this, we must stop
ssl_state->curr_connp->hs_bytes_processed = 0;
break;
}
}

Loading…
Cancel
Save