aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-08-25 16:46:55 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:34 -0400
commitf7944fb1913130ae7858008af96e52a3a6b04118 (patch)
tree757d88e7c9ed3a423f27546e23104a8daee0a34b /net
parent3b26a9a655ee73a87071a9f6a1fdd5311e31d7c9 (diff)
[XFRM] policy: Replace magic number with XFRM_POLICY_OUT
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
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);