summaryrefslogtreecommitdiff
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-08-26 00:46:55 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 03:48:34 +0400
commitf7944fb1913130ae7858008af96e52a3a6b04118 (patch)
tree757d88e7c9ed3a423f27546e23104a8daee0a34b /net/xfrm/xfrm_policy.c
parent3b26a9a655ee73a87071a9f6a1fdd5311e31d7c9 (diff)
downloadlinux-f7944fb1913130ae7858008af96e52a3a6b04118.tar.xz
[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/xfrm/xfrm_policy.c')
-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:
pol_dead = 0;
xfrm_nr = 0;
- if (sk && sk->sk_policy[1]) {
+ if (sk && sk->sk_policy[XFRM_POLICY_OUT]) {
policy = xfrm_sk_policy_lookup(sk, XFRM_POLICY_OUT, fl);
if (IS_ERR(policy))
return PTR_ERR(policy);