Fix empty NewSessionTicket processing
[openssl.git] / ssl / statem / statem_clnt.c
index dbba36bc9e54c4c50e4dce344efc6278b9df564f..d0c6b1292ede75cc3ca383185aae392e73a0280b 100644 (file)
@@ -2184,7 +2184,7 @@ enum MSG_PROCESS_RETURN tls_process_new_session_ticket(SSL *s, PACKET *pkt)
 
     /* Server is allowed to change its mind and send an empty ticket. */
     if (ticklen == 0)
-        return 1;
+        return MSG_PROCESS_CONTINUE_READING;
 
     if (s->session->session_id_length > 0) {
         int i = s->session_ctx->session_cache_mode;