Fix two bugs in clienthello processing
[openssl.git] / ssl / statem / statem_srvr.c
index a45acbd30ca909c5abf4f08490dc2b750b6e5961..b5cfc4f2209dcb2dbe56ab062eccdb39210321d4 100644 (file)
@@ -1454,7 +1454,7 @@ WORK_STATE tls_post_process_client_hello(SSL *s, WORK_STATE wst)
 
         /* Handles TLS extensions that we couldn't check earlier */
         if (s->version >= SSL3_VERSION) {
-            if (ssl_check_clienthello_tlsext_late(s) <= 0) {
+            if (!ssl_check_clienthello_tlsext_late(s, &al)) {
                 SSLerr(SSL_F_TLS_POST_PROCESS_CLIENT_HELLO,
                        SSL_R_CLIENTHELLO_TLSEXT);
                 goto f_err;