From: Dragan Dosen Date: Mon, 20 Sep 2021 07:29:19 +0000 (+0200) Subject: BUG/MINOR: flt-trace: fix an infinite loop when random-parsing is set X-Git-Tag: v2.5-dev8~168 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8018eb470f3299d1658abdd2ba1a1d0091ca8e8;p=thirdparty%2Fhaproxy.git BUG/MINOR: flt-trace: fix an infinite loop when random-parsing is set 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. --- diff --git a/src/flt_trace.c b/src/flt_trace.c index 424cd00143..b3efea6f94 100644 --- a/src/flt_trace.c +++ b/src/flt_trace.c @@ -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)