[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>
This commit is contained in:
Thomas Graf 2007-08-25 13:46:55 -07:00 committed by David S. Miller
parent 3b26a9a655
commit f7944fb191

View 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);