]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] counters: fix segfault on missing counters for a listener
authorWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 22:45:38 +0000 (00:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 22:45:38 +0000 (00:45 +0200)
commitba255bc3c889cf8dd31b941ede6f8603ce8f758e
treeddf6e09937ff9847892dd380d01c5e34f6785e01
parent6f61b215247ed87371c551fc09457bfdb8b72ddc
[BUG] counters: fix segfault on missing counters for a listener

If a frontend does not set 'option socket-stats', a 'clear counters'
on the stats socket could segfault because li->counters is NULL. The
correct fix is to check for NULL before as this is a valid situation.
src/dumpstats.c