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.

(cherry picked from commit 28a8fce485a94b636f6905134509c1150690b60f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed