BUG/MINOR: ssl: Missing calloc return value check in ssl_init_single_engine
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 12 May 2021 15:45:21 +0000 (17:45 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:50:49 +0000 (10:50 +0200)
commit612b2c37be70636e73698c6c064af9522301be65
tree6af330c98320f3e780d39b36b3e38c55d7909043
parent208ff01b23eda19fe41780310f4d08ca86e28766
BUG/MINOR: ssl: Missing calloc return value check in ssl_init_single_engine

A memory allocation failure happening during ssl_init_single_engine
would have resulted in a crash. This function is only called during
init.

It was raised in GitHub issue #1233.
It could be backported to all stable branches.
src/ssl_sock.c