diff options
author | Phil Sutter <phil@nwl.cc> | 2017-08-24 18:04:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-08-24 18:12:31 +0200 |
commit | a67af69a32cffbd727a48ea7b1d23ce92f1327ee (patch) | |
tree | ff831e7f564cd0befb81cc81a9475aac7bbb0301 /src/proto.c | |
parent | 2b5e51e375c1914a1077772ac41f27d6c722dd5e (diff) |
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 <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/proto.c')
-rw-r--r-- | src/proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |