]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: Fix debug_proto_ctx()
authorPhil Sutter <phil@nwl.cc>
Thu, 24 Aug 2017 16:04:18 +0000 (18:04 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 24 Aug 2017 16:12:31 +0000 (18:12 +0200)
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 <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/proto.c

index 5bd50b7b96195e491f7b1b5cdf7547bd3a0e05bc..a72c10c3a1680d772afcfa205e42020a1284081f 100644 (file)
@@ -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]);