From 671e07617c1a3a9b8fd6310c522d0125c27e3216 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 24 Nov 2023 09:23:04 +0100 Subject: [PATCH] BUG/MINOR: global: Fix tune.disable-(fast-forward/zero-copy-forwarding) options These options were not properly handled during configration parsing. A wrong bitwise operation was used. No backport needed. --- src/cfgparse-global.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfgparse-global.c b/src/cfgparse-global.c index 9e7e332..a80ac85 100644 --- a/src/cfgparse-global.c +++ b/src/cfgparse-global.c @@ -515,12 +515,12 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm) if (alertif_too_many_args(0, file, linenum, args, &err_code)) goto out; - global.tune.options &= GTUNE_USE_FAST_FWD; + global.tune.options &= ~GTUNE_USE_FAST_FWD; } else if (strcmp(args[0], "tune.disable-zero-copy-forwarding") == 0) { if (alertif_too_many_args(0, file, linenum, args, &err_code)) goto out; - global.tune.options &= GTUNE_USE_ZERO_COPY_FWD; + global.tune.options &= ~GTUNE_USE_ZERO_COPY_FWD; } else if (strcmp(args[0], "cluster-secret") == 0) { blk_SHA_CTX sha1_ctx; -- 1.7.10.4