]> git.baikalelectronics.ru Git - kernel.git/commit
IPVS: fix NULL ptr dereference in ip_vs_ctl.c ip_vs_genl_dump_daemons()
authorHans Schillstrom <hans.schillstrom@ericsson.com>
Mon, 4 Apr 2011 13:25:18 +0000 (15:25 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Apr 2011 13:25:18 +0000 (15:25 +0200)
commit68b09b983cca6ae4bc91ef641d811ad8f5ffdd71
tree26ae50dcffd19813b21f3cacb9a11a1908dcf3f0
parentbc5555bfea804a5b9210f6cb4086d4b7785298e5
IPVS: fix NULL ptr dereference in ip_vs_ctl.c ip_vs_genl_dump_daemons()

ipvsadm -ln --daemon will trigger a Null pointer exception because
ip_vs_genl_dump_daemons() uses skb_net() instead of skb_sknet().

To prevent others from NULL ptr a check is made in ip_vs.h skb_net().

Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_ctl.c