]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tune.fail-alloc: Don't forget to initialize ret.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 1 Feb 2019 15:28:04 +0000 (16:28 +0100)
committerOlivier Houchard <cognet@ci0.org>
Fri, 1 Feb 2019 15:30:08 +0000 (16:30 +0100)
commit9c4f08ae3915fe325d9d40f269652b88bfdefe03
treef00b9e180587b77c2bba990e9b506a9a2e74420a
parent3e451842dcd5f2d6f063156e2fa4b78195f097e6
BUG/MINOR: tune.fail-alloc: Don't forget to initialize ret.

In mem_should_fail(), if we don't want to fail the allocation, either
because mem_fail_rate is 0, or because we're still initializing, don't
forget to initialize ret, or we may return a non-zero value, and fail
an allocation we didn't want to fail.
This should only affect users that compile with DEBUG_FAIL_ALLOC.
src/memory.c