commit | 9703e66bceb67baf8ebf53430b0d2c85d26e6b86 | [log] [tgz] |
---|---|---|
author | Godbach <nylzhaowei@gmail.com> | Wed Dec 11 21:11:41 2013 +0800 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 11 14:47:05 2013 +0100 |
tree | f26d6c557f07ef887dc238c6044ad245b6a800c1 | |
parent | 7056a3521716644c3aac04da961053c0afe470fe [diff] |
BUG/MINOR: check_config_validity: check the returned value of stktable_init() The function stktable_init() will return 0 if create_pool() returns NULL. Since the returned value of this function is ignored, HAProxy will crash if the pool of stick table is NULL and stksess_new() is called to allocate a new stick session. It is a better choice to check the returned value and make HAProxy exit with alert message if any error is caught. Signed-off-by: Godbach <nylzhaowei@gmail.com>