]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: fix improper check for failed memory alloc in ACL parser
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Jan 2013 23:25:39 +0000 (00:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 15:19:18 +0000 (16:19 +0100)
commitf678b7f32253fa7b279f907dbda563e985c6478c
treeb3e3dffcb5c165b7108f8799227363874d04d1a1
parentcf181c9d404815f890da7cd2243a5528edd7b4f9
BUG/MINOR: config: fix improper check for failed memory alloc in ACL parser

The wrong variable is checked after a calloc() so a memory shortage would
result in a segfault while loading the config instead of a clean error.

This fix may be backported to 1.4 and 1.3 which are both affected.

Reported-by: Dinko Korunic <dkorunic@reflected.net>
src/acl.c