[XFRM] policy: Replace magic number with XFRM_POLICY_OUT
authorThomas Graf <tgraf@suug.ch>
Sat, 25 Aug 2007 20:46:55 +0000 (13:46 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:34 +0000 (16:48 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c

index 7012891d39f2c6757b1c50784299043d353cc07a..6ab81b1d215ebb23f932624fc7845b6483ab36c2 100644 (file)
@@ -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);