]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-ana: Fix memleak in redirect rules with ignore-empty option
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Apr 2022 18:34:38 +0000 (20:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Apr 2022 18:47:22 +0000 (20:47 +0200)
commiteab175771dc907d3280d173d721267ead67a4dd7
tree312273e5f22df26e9d42d9c7419da15948fa5e45
parent4d7fdc65d45a8e0f9a051dd8d62ba8df9445d8f9
BUG/MEDIUM: http-ana: Fix memleak in redirect rules with ignore-empty option

A memory leak was introduced when ignore-empty option was added to redirect
rules. If there is no location, when this option is set, the redirection is
aborted and the processing continues. But when this happened, the trash buffer
allocated to format the redirect response was not released.

The bug was introduced by commit bc1223be7 ("MINOR: http-rules: add a new
"ignore-empty" option to redirects.").

This patch should fix the issue #1675. It must be backported to 2.5.
src/http_ana.c