From 728f14d686e89b7e8aec34616904084f7b7ea2bc Mon Sep 17 00:00:00 2001 From: Steve Muckle Date: Mon, 21 Jan 2013 12:51:38 -0800 Subject: [PATCH] netfilter: fix ipv6_find_hdr usage The semantics of the offset parameter of ipv6_find_hdr changed recently and it is now an in/out. It is therefore incorrect to pass it in uninitialized. Change-Id: I47c1dbd856d89b0369fe4a5a8dab15e776da78d8 Signed-off-by: Steve Muckle --- net/netfilter/xt_qtaguid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/xt_qtaguid.c b/net/netfilter/xt_qtaguid.c index f6d4cfc05f3..86ca0212bf2 100644 --- a/net/netfilter/xt_qtaguid.c +++ b/net/netfilter/xt_qtaguid.c @@ -1201,7 +1201,7 @@ static struct sock_tag *get_sock_stat(const struct sock *sk) static int ipx_proto(const struct sk_buff *skb, struct xt_action_param *par) { - int thoff, tproto; + int thoff = 0, tproto; switch (par->family) { case NFPROTO_IPV6: