summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2016-11-21 10:56:25 -0800
committerDmitry Shmidt <dimitrysh@google.com>2016-11-21 10:56:25 -0800
commit84dc474f3c33c4fbbe42f46876e0dde502e60ad0 (patch)
tree1c60e8369668a67042e47774ae4a389bbfc239b6 /net/ipv6
parent40ceb2c69964f8bde97d4ded4306508db16fd365 (diff)
parent4eb9a81002485a7abfa53a334dde5bc10328079f (diff)
Merge tag 'v4.4.34' into android-4.4.y
This is the 4.4.34 stable release Change-Id: Ic90323945584a7173f54595e0482d26fafd10174
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/tcp_ipv6.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index b831f3eb55a4..50e71e784e85 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1215,7 +1215,7 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
if (skb->protocol == htons(ETH_P_IP))
return tcp_v4_do_rcv(sk, skb);
- if (sk_filter(sk, skb))
+ if (tcp_filter(sk, skb))
goto discard;
/*
@@ -1439,8 +1439,10 @@ process:
if (tcp_v6_inbound_md5_hash(sk, skb))
goto discard_and_relse;
- if (sk_filter(sk, skb))
+ if (tcp_filter(sk, skb))
goto discard_and_relse;
+ th = (const struct tcphdr *)skb->data;
+ hdr = ipv6_hdr(skb);
skb->dev = NULL;