mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-26 19:22:57 -04:00
BUG/MINOR: uri-auth: fix possible null-deref in latest fix for leaks
Latest commit 2dfbc311a8 ("BUG/MINOR: uri-auth: avoid leaks on
initialization error") left a possible null-deref case which was
surprisingly only detected by certain compiler combinations. No
backport needed.
This commit is contained in:
parent
241cfb2483
commit
aa2c7034e1
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ struct uri_auth *stats_add_auth(struct uri_auth **root, char *user)
|
|||
free(newuser->user);
|
||||
free(newuser);
|
||||
}
|
||||
if (!old_u) {
|
||||
if (u && !old_u) {
|
||||
if (u->userlist) {
|
||||
free(u->userlist->name);
|
||||
free(u->userlist);
|
||||
|
|
|
|||
Loading…
Reference in a new issue