]> git.karo-electronics.de Git - linux-beck.git/commit
[NETFILTER]: nfnetlink_log: fix checks in nfulnl_recv_config
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 06:39:55 +0000 (22:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:59:00 +0000 (14:59 -0800)
commitc0506365a928adfd5608ed6873a705ae18e2daaf
treee61abaf91c2b198f1b8c5db45ad46eb0bff2c9c8
parenta7c42955e036127f793ad955d3ec718494efb1eb
[NETFILTER]: nfnetlink_log: fix checks in nfulnl_recv_config

Similar to the nfnetlink_queue fixes:

The peer_pid must be checked in all cases when a logging instance exists,
additionally we must check whether an instance exists before attempting
to configure it to avoid NULL ptr dereferences.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink_log.c