Commit fbaf2857 authored by Rich Salz's avatar Rich Salz
Browse files

If-guard to avoid null ptr deref in statem_srvr.c

parent a020f54c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1444,6 +1444,7 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt)
 err:
    ossl_statem_set_error(s);

    if (clienthello != NULL)
        OPENSSL_free(clienthello->pre_proc_exts);
    OPENSSL_free(clienthello);