]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: http-ana: Remove a debugging memset on redirect
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Jun 2026 09:20:28 +0000 (11:20 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jun 2026 06:55:56 +0000 (08:55 +0200)
A memset used for debug was left when "keep-query" option was added. Let's
remove it. This bug should be harmless but it consumes extra CPU for
nothing.

This patch should be backported as far as 3.2.

src/http_ana.c

index d2c2d9c1b6beab09e9a61113d879d58394e5baf7..d2d270fa8ffb3f0a078f178023debcadcff6a1b4 100644 (file)
@@ -2517,7 +2517,6 @@ int http_apply_redirect_rule(struct redirect_rule *rule, struct stream *s, struc
                }
                case REDIRECT_TYPE_LOCATION:
                default:
-                       memset(chunk->area, 0x50, chunk->size);
                        if (rule->rdr_str) { /* this is an old "redirect" rule */
                                /* add location */
                                if (!chunk_memcat(chunk, rule->rdr_str, rule->rdr_len))