BUG/MEDIUM: cfgparse: segfault when userlist is misused
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 28 May 2015 16:03:51 +0000 (18:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 16:43:03 +0000 (18:43 +0200)
commit4ac9f546120d42be8147e3d90588e7b9738af0cc
treec8d2692f4ccc7c52d87d2ca63e538728167bfc8f
parent77063bc0c6ceb4257c4e2c08411811ecc48be1aa
BUG/MEDIUM: cfgparse: segfault when userlist is misused

If the 'userlist' keyword parsing returns an error and no userlist were
previously created. The parsing of 'user' and 'group' leads to NULL
derefence.

The userlist pointer is now tested to prevent this issue.
src/cfgparse.c