app-layer-ssl: remove unnecessary length check

We already check that empty extensions are not decoded, so this length
check is not needed.
pull/3488/head
Mats Klepsland 7 years ago
parent 0b5a2ab49b
commit 4470b05ae4

@ -1184,8 +1184,7 @@ static inline int TLSDecodeHSHelloExtensions(SSLState *ssl_state,
case SSL_EXTENSION_SESSION_TICKET: case SSL_EXTENSION_SESSION_TICKET:
{ {
if ((ssl_state->current_flags & SSL_AL_FLAG_STATE_CLIENT_HELLO) && if (ssl_state->current_flags & SSL_AL_FLAG_STATE_CLIENT_HELLO) {
ext_len != 0) {
/* This has to be verified later on by checking if a /* This has to be verified later on by checking if a
certificate record has been sent by the server. */ certificate record has been sent by the server. */
ssl_state->flags |= SSL_AL_FLAG_SESSION_RESUMED; ssl_state->flags |= SSL_AL_FLAG_SESSION_RESUMED;

Loading…
Cancel
Save