]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: abort on sni_keytypes allocation failure
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 4 Oct 2019 15:36:55 +0000 (17:36 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 11 Oct 2019 15:32:02 +0000 (17:32 +0200)
commit28a8fce485a94b636f6905134509c1150690b60f
tree7e8bf5ba026ad6c3ad916982645059e68b4b2409
parent8ed5b965872e3b0cd6605f37bc8fe9f2819ce03c
BUG/MINOR: ssl: abort on sni_keytypes allocation failure

The ssl_sock_populate_sni_keytypes_hplr() function does not return an
error upon an allocation failure.

The process would probably crash during the configuration parsing if the
allocation fail since it tries to copy some data in the allocated
memory.

This patch could be backported as far as 1.5.
src/ssl_sock.c