]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] we could segfault during exit while freeing uri_auths
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2008 09:14:45 +0000 (11:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2008 09:14:45 +0000 (11:14 +0200)
commitaccc4e1e8678e588db6c2f98a52e788d8600cfaa
tree0efac7b6e6b050ed698ac27f4786bd822012869d
parent9789f7bd6837c201d4c85ab0e3916fc15010dead
[BUG] we could segfault during exit while freeing uri_auths

The following config makes haproxy segfault on exit :

defaults
mode http
balance roundrobin

listen  no-stats
        bind       :8001

listen  stats
        bind       :8002
stats      uri /stats

The simple fix is to ensure that p->uri_auth is not NULL
before dereferencing it.
src/haproxy.c