Commit 31c9edfe authored by David S. Miller's avatar David S. Miller

[IPSEC]: In TCP/v6 input, check policy before socket filter.

parent 6bb23a88
......@@ -1639,10 +1639,10 @@ static int tcp_v6_rcv(struct sk_buff **pskb)
if(sk->state == TCP_TIME_WAIT)
goto do_time_wait;
if (sk_filter(sk, skb, 0))
if (!xfrm6_policy_check(sk, XFRM_POLICY_IN, skb))
goto discard_and_relse;
if (!xfrm6_policy_check(sk, XFRM_POLICY_IN, skb))
if (sk_filter(sk, skb, 0))
goto discard_and_relse;
skb->dev = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment