Store the number of extensions in CLIENTHELLO_MSG
[openssl.git] / ssl / statem / statem_srvr.c
index 28f3b24cd6da374311987407f591e3fe4fadc7ef..ca020c551106a2ed9f6f9094d4cadd0c33573082 100644 (file)
@@ -1423,7 +1423,8 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt)
     /* Preserve the raw extensions PACKET for later use */
     extensions = clienthello.extensions;
     if (!tls_collect_extensions(s, &extensions, EXT_CLIENT_HELLO,
-                                &clienthello.pre_proc_exts, &al, NULL)) {
+                                &clienthello.pre_proc_exts, &al,
+                                &clienthello.pre_proc_exts_len)) {
         /* SSLerr already been called */
         goto f_err;
     }