]> git.ipfire.org Git - thirdparty/openssl.git/commit
Check if num is 0 before trying to malloc memory. Otherwise for client hellos without...
authordyrock <zeyuany@gmail.com>
Mon, 15 Apr 2019 16:01:58 +0000 (11:01 -0500)
committerMatt Caswell <matt@openssl.org>
Fri, 19 Apr 2019 08:51:48 +0000 (09:51 +0100)
commit6fda11ae5a06e28fd9463e5afb60735d074904b3
tree6d6293592e5840110a68dec6cf31c43d0fba8ec1
parenta595b10d343845eca32cffb35f1d0a2f15ce40a9
Check if num is 0 before trying to malloc memory. Otherwise for client hellos without extensions SSL_client_hello_get1_extensions_present will return MALLOC_FAILURE.

Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8756)
doc/man3/SSL_CTX_set_client_hello_cb.pod
ssl/ssl_lib.c