Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd16704e authored by Michal Miroslaw's avatar Michal Miroslaw Committed by David S. Miller
Browse files

[NETFILTER]: nfnetlink_log: fix possible NULL pointer dereference



Eliminate possible NULL pointer dereference in nfulnl_recv_config().

Signed-off-by: default avatarMichal Miroslaw <mirq-linux@rere.qmqm.pl>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a497097d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -858,6 +858,9 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
			ret = -EINVAL;
			break;
		}

		if (!inst)
			goto out;
	} else {
		if (!inst) {
			UDEBUG("no config command, and no instance for "
@@ -911,6 +914,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,

out_put:
	instance_put(inst);
out:
	return ret;
}