mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-28 00:00:22 +02:00
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:
committed by
Jay Chokshi
parent
beaf1c2be5
commit
728f14d686
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user