Skip to content

Commit

Permalink
[XFRM] policy: Replace magic number with XFRM_POLICY_OUT
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graf <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tgraf authored and David S. Miller committed Oct 10, 2007
1 parent 3b26a9a commit f7944fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ int __xfrm_lookup(struct dst_entry **dst_p, struct flowi *fl,
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);
Expand Down

0 comments on commit f7944fb

Please sign in to comment.