]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: peers: Missing calloc return value check in peers_register_table
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 12 May 2021 15:39:04 +0000 (17:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 May 2021 08:50:46 +0000 (10:50 +0200)
commit208ff01b23eda19fe41780310f4d08ca86e28766
treee5d5d94f2823e0aa4f0c35285466cdaf669bb827
parentf1800e64ef2428747e696b0ef2f78ab05a116dcc
BUG/MINOR: peers: Missing calloc return value check in peers_register_table

A memory allocation failure happening during peers_register_table 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.
include/haproxy/peers.h
src/peers.c
src/stick_table.c