diff options
author | Phil Sutter <phil@nwl.cc> | 2017-09-21 20:38:02 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-09-27 14:11:58 +0200 |
commit | 41e3126f9832e0093e6a9d35ff1ba6065242136f (patch) | |
tree | ba3099e05f7a54982424cbc2643ea4ff75e5ccb6 /include/nftables.h | |
parent | b8387bb0b0a2e53a5f74814625b374b3b4b0c932 (diff) |
monitor: Fix for incorrect debug_mask
The field 'debug_mask' of struct netlink_mon_handler was left
uninitialized in do_command_monitor() so it contained garbage from the
stack. Fix this by initializing it with the debug_mask value from struct
netlink_ctx.
While being at it, change the code to make use of C99-style initializer,
which will also avoid things like this in future.
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 'include/nftables.h')
0 files changed, 0 insertions, 0 deletions