Skip to content

Commit b43c279

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: nfnetlink_queue: silence bogus compiler warning
net/netfilter/nfnetlink_queue.c:601:36: warning: variable 'ctinfo' is uninitialized when used here [-Wuninitialized] if (ct && nfnl_ct->build(skb, ct, ctinfo, NFQA_CT, NFQA_CT_INFO) < 0) ctinfo is only uninitialized if ct == NULL. Init it to 0 to silence this. Reported-by: kernel test robot <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 34d8778 commit b43c279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nfnetlink_queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ nfqnl_build_packet_message(struct net *net, struct nfqnl_instance *queue,
387387
struct net_device *indev;
388388
struct net_device *outdev;
389389
struct nf_conn *ct = NULL;
390-
enum ip_conntrack_info ctinfo;
390+
enum ip_conntrack_info ctinfo = 0;
391391
struct nfnl_ct_hook *nfnl_ct;
392392
bool csum_verify;
393393
char *secdata = NULL;

0 commit comments

Comments
 (0)