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 <smuckle@codeaurora.org>
This commit is contained in:
Steve Muckle
2013-02-14 10:48:25 -08:00
committed by Jay Chokshi
parent beaf1c2be5
commit 728f14d686
+1 -1
View File
@@ -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: