[PATCH 2.6.20 12/14] nfnetlink_log: possible NULL pointer
dereference in nfulnl_recv_config()
Michał Mirosław
mirq-linux at rere.qmqm.pl
Mon Feb 12 21:22:24 CET 2007
Eliminate possible NULL pointer dereference in nfulnl_recv_config().
Signed-off-by: Michał Mirosław <mirq-linux at rere.qmqm.pl>
--- linux-2.6.20/net/netfilter/nfnetlink_log.c.10 2007-02-12 17:05:14.000000000 +0100
+++ linux-2.6.20/net/netfilter/nfnetlink_log.c 2007-02-12 17:35:50.000000000 +0100
@@ -853,6 +853,9 @@ nfulnl_recv_config(struct sock *ctnl, st
ret = -EINVAL;
break;
}
+
+ if (!inst)
+ goto out_null;
} else {
if (!inst) {
UDEBUG("no config command, and no instance for "
More information about the netfilter-devel
mailing list