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 13:26:57 +0000 (15:26 +0200)
commite10ab28ffdedb731f17ce1465def365c2cbeaa74
tree7350861c1fc3d5aad95987f577571a36a6415a6e
parentcff2df91415d1b61700a77f62c8f7712b7fb7753
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.

(cherry picked from commit 612b2c37be70636e73698c6c064af9522301be65)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 46697c80fec88e656a4f7280a2cfa9dedbfb33a5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/ssl_sock.c