From: Phil Sutter Date: Thu, 24 Aug 2017 16:04:18 +0000 (+0200) Subject: src: Fix debug_proto_ctx() X-Git-Tag: v0.8~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a67af69a32cffbd727a48ea7b1d23ce92f1327ee;p=thirdparty%2Fnftables.git src: Fix debug_proto_ctx() Debug mask check was done against wrong flag, causing protocol context debug output being printed when only --debug=netlink was given. Fixes: be441e1ffdc24 ("src: add debugging mask to context structure") Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/proto.c b/src/proto.c index 5bd50b7b..a72c10c3 100644 --- a/src/proto.c +++ b/src/proto.c @@ -143,7 +143,7 @@ static void proto_ctx_debug(const struct proto_ctx *ctx, enum proto_bases base, { unsigned int i; - if (!(debug_mask & DEBUG_NETLINK)) + if (!(debug_mask & DEBUG_PROTO_CTX)) return; pr_debug("update %s protocol context:\n", proto_base_names[base]);