mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
[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.
This commit is contained in:
parent
9789f7bd68
commit
accc4e1e86
@ -737,7 +737,7 @@ void deinit(void)
|
|||||||
if (uap == p->uri_auth)
|
if (uap == p->uri_auth)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (!uap) {
|
if (!uap && p->uri_auth) {
|
||||||
/* add it, if it is */
|
/* add it, if it is */
|
||||||
p->uri_auth->next = ua;
|
p->uri_auth->next = ua;
|
||||||
ua = p->uri_auth;
|
ua = p->uri_auth;
|
||||||
|
Loading…
Reference in New Issue
Block a user