commit | ba255bc3c889cf8dd31b941ede6f8603ce8f758e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Oct 05 00:45:38 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Oct 05 00:45:38 2009 +0200 |
tree | ddf6e09937ff9847892dd380d01c5e34f6785e01 | |
parent | 6f61b215247ed87371c551fc09457bfdb8b72ddc [diff] |
[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.