diff options
-rw-r--r-- | src/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 929f25d..52e5f0e 100644 --- a/src/common.c +++ b/src/common.c @@ -72,6 +72,9 @@ int nft_event_header_snprintf(char *buf, size_t size, uint32_t type, { int ret = 0; + if (!(flags & NFT_OF_EVENT_ANY)) + return 0; + switch (type) { case NFT_OUTPUT_XML: if (flags & NFT_OF_EVENT_NEW) { |