Re: [nft PATCH 2/4] netlink: Fix segfault when using --echo flag

2017-08-15 Thread Pablo Neira Ayuso
On Tue, Aug 15, 2017 at 01:43:03AM +0200, Phil Sutter wrote: > Commit 07b45939972eb ("src: introduce struct nft_cache") added cache > pointer to struct netlink_mon_handler and the code assumes it is never > NULL. Therefore initialize it in the dummy version of > netlink_mon_handler in

[nft PATCH 2/4] netlink: Fix segfault when using --echo flag

2017-08-14 Thread Phil Sutter
Commit 07b45939972eb ("src: introduce struct nft_cache") added cache pointer to struct netlink_mon_handler and the code assumes it is never NULL. Therefore initialize it in the dummy version of netlink_mon_handler in netlink_echo_callback(). Fixes: b99c4d072d996 ("Implement --echo option")