Skip to content

Commit 7bfa568

Browse files
committed
BUG/MINOR: http-ana: Remove a debugging memset on redirect
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.
1 parent c64e242 commit 7bfa568

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/http_ana.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2517,7 +2517,6 @@ int http_apply_redirect_rule(struct redirect_rule *rule, struct stream *s, struc
25172517
}
25182518
case REDIRECT_TYPE_LOCATION:
25192519
default:
2520-
memset(chunk->area, 0x50, chunk->size);
25212520
if (rule->rdr_str) { /* this is an old "redirect" rule */
25222521
/* add location */
25232522
if (!chunk_memcat(chunk, rule->rdr_str, rule->rdr_len))

0 commit comments

Comments
 (0)