]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: flt-trace: fix an infinite loop when random-parsing is set
authorDragan Dosen <ddosen@haproxy.com>
Mon, 20 Sep 2021 07:29:19 +0000 (09:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Sep 2021 14:06:58 +0000 (16:06 +0200)
The issue is introduced with the commit c41d8bd65 ("CLEANUP: flt-trace:
Remove unused random-parsing option").

This must be backported everywhere the above commit is.

src/flt_trace.c

index 424cd00143c69d0ab4d652fcc733f71e5275a439..b3efea6f948ff1a329377e0cf1120168c9348c3c 100644 (file)
@@ -642,7 +642,7 @@ parse_trace_flt(char **args, int *cur_arg, struct proxy *px,
                        else if (strcmp(args[pos], "quiet") == 0)
                                conf->flags |= TRACE_F_QUIET;
                        else if (strcmp(args[pos], "random-parsing") == 0)
-                               continue; // ignore
+                               ; // ignore
                        else if (strcmp(args[pos], "random-forwarding") == 0)
                                conf->flags |= TRACE_F_RAND_FWD;
                        else if (strcmp(args[pos], "hexdump") == 0)