diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-08-25 13:46:55 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:48:34 -0700 |
commit | f7944fb1913130ae7858008af96e52a3a6b04118 (patch) | |
tree | 757d88e7c9ed3a423f27546e23104a8daee0a34b /net | |
parent | 3b26a9a655ee73a87071a9f6a1fdd5311e31d7c9 (diff) | |
download | linux-3.10-f7944fb1913130ae7858008af96e52a3a6b04118.tar.gz linux-3.10-f7944fb1913130ae7858008af96e52a3a6b04118.tar.bz2 linux-3.10-f7944fb1913130ae7858008af96e52a3a6b04118.zip |
[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 7012891d39f..6ab81b1d215 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); |