commit | 6f61b215247ed87371c551fc09457bfdb8b72ddc | [log] [tgz] |
---|---|---|
author | Krzysztof Piotr Oledzki <ole@ans.pl> | Sun Oct 04 23:34:15 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Oct 04 23:44:45 2009 +0200 |
tree | b3a6376dcbdf252a341a754a547df7315286b098 | |
parent | ac68c5d92c5cb42b2e2630731eb2faad92c83e72 [diff] |
[BUG] Fix NULL pointer dereference in stats_check_uri_auth(), v2 Recent "struct chunk rework" introduced a NULL pointer dereference and now haproxy segfaults if auth is required for stats but not found. The reason is that size_t cannot store negative values, but current code assumes that "len < 0" == uninitialized. This patch fixes it.