]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
netfilter: ctnetlink: fix uninitialized variable
authorFlorian Westphal <fw@strlen.de>
Tue, 27 Aug 2013 09:47:26 +0000 (11:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Aug 2013 22:28:19 +0000 (00:28 +0200)
commitb7e092c05b308674c642ed7fb754d555f0ebba81
treefc19e174f7205a1724b23131c0d775ee629adb9f
parent4ad362282cb45bbc831a182e45637da8c5bd7aa1
netfilter: ctnetlink: fix uninitialized variable

net/netfilter/nf_conntrack_netlink.c: In function 'ctnetlink_nfqueue_attach_expect':
'helper' may be used uninitialized in this function

It was only initialized in if CTA_EXPECT_HELP_NAME attribute was
present, it must be NULL otherwise.

Problem added recently in bd077937
(netfilter: nfnetlink_queue: allow to attach expectations to conntracks).

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c