]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: uri-auth: never risk to dereference a NULL on error path
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Aug 2026 15:48:14 +0000 (17:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Aug 2026 15:50:31 +0000 (17:50 +0200)
commiteca4e38c59e47bdb192c21e8dee7b157ea8ccced
treeab8985e1ab92bf33b510796116eb963a7ffa92e9
parent9204caf5452120de41d57bae0430b5240d63d4a9
BUG/MINOR: uri-auth: never risk to dereference a NULL on error path

The fix in commit 2dfbc311a8 ("BUG/MINOR: uri-auth: avoid leaks on
initialization error") added *root = NULL, but the functions support
being called with root == NULL, though nothing does it in the whole
code. At least it triggers Coverity (see github issue #3476 and #3477).
So let's fix it.

No backport is needed since it cannot happen in the current code base.
src/uri_auth.c