]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stick-table: handle out-of-memory condition gracefully
authorVincent Bernat <vincent@bernat.im>
Thu, 17 Nov 2016 14:42:40 +0000 (15:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Nov 2016 15:00:16 +0000 (16:00 +0100)
commitef8f4fe12d03d6e015b6e5bfa0a9d063cff83b89
tree156755b193973fceed643637a426e83dcb2a33ba
parenta71f642b6258614fd256493c7687a01b25a081c6
BUG/MINOR: stick-table: handle out-of-memory condition gracefully

In case `pool_alloc2()` returns NULL, propagate the condition to the
caller. This could happen when limiting the amount of memory available
for HAProxy with `-m`.

[wt: backport to 1.6 and 1.5 needed]
src/stick_table.c