]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http_htx: fix null deref in http-errors config check
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Mar 2026 12:50:17 +0000 (13:50 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Mar 2026 12:55:48 +0000 (13:55 +0100)
commit1c379cad88a5039412df6b35cc39b7ee8b467fa8
treec226f39ee5d061e81d4ef62c674464b4403a521f
parent3d9865a12cf5367b47a068125b9332461a658bfc
BUG/MINOR: http_htx: fix null deref in http-errors config check

http-errors parsing has been refactored in a recent serie of patches.
However, a null deref was introduced by the following patch in case a
non-existent http-errors section is referenced by an "errorfiles"
directive.

  commit 2ca7601c2d6781f455cf205e4f3b52f5beb16e41
  MINOR/OPTIM: http_htx: lookup once http_errors section on check/init

Fix this by delaying ha_free() so that it is called after ha_alert().

No need to backport.
src/http_htx.c