]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl_sock: add check for ha_meth
authoreaglegai <eaglegai@163.com>
Fri, 26 May 2023 08:42:47 +0000 (16:42 +0800)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 May 2023 10:07:43 +0000 (12:07 +0200)
commit15c3d20e315f1f06c9649ae598de86d61d41085b
tree20940841d5d28637b5b55bde5363d522804f6533
parent44c73cea081a659315ec5e5e6d7988530456f1fc
BUG/MINOR: ssl_sock: add check for ha_meth

in __ssl_sock_init, BIO_meth_new may failed and return NULL if
OPENSSL_zalloc failed.  in this case, ha_meth  will be NULL, and then
crash happens in  BIO_meth_set_write.  So, we add a check for ha_meth.
src/ssl_sock.c