aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/xfrm/xfrm_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 7012891d39f2..6ab81b1d215e 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1477,7 +1477,7 @@ restart:
1477 pol_dead = 0; 1477 pol_dead = 0;
1478 xfrm_nr = 0; 1478 xfrm_nr = 0;
1479 1479
1480 if (sk && sk->sk_policy[1]) { 1480 if (sk && sk->sk_policy[XFRM_POLICY_OUT]) {
1481 policy = xfrm_sk_policy_lookup(sk, XFRM_POLICY_OUT, fl); 1481 policy = xfrm_sk_policy_lookup(sk, XFRM_POLICY_OUT, fl);
1482 if (IS_ERR(policy)) 1482 if (IS_ERR(policy))
1483 return PTR_ERR(policy); 1483 return PTR_ERR(policy);