common: fix unconditional output of event wrapping stuff
PATCH 1/1 common: fix unconditional output of event wrapping stuff
We can't unconditionally print out these strings.
Before this patch, objects being printed will be treated as an 'unkown' event.
Signed-off-by Arturo Borrero Gonzalez <[email protected]>
--- src/common.c | 3 +++ 1 file changed, 3 insertions(+)
src/common.c +3 -0
@@ -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 ) {
Quoted 3 lines · Arturo Borrero Gonzalez
We can't unconditionally print out these strings.
Before this patch, objects being printed will be treated as an 'unkown' event.
Applied, thanks Arturo.