Commit f7944fb1 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller

[XFRM] policy: Replace magic number with XFRM_POLICY_OUT

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b26a9a6
...@@ -1477,7 +1477,7 @@ restart: ...@@ -1477,7 +1477,7 @@ restart:
pol_dead = 0; pol_dead = 0;
xfrm_nr = 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); policy = xfrm_sk_policy_lookup(sk, XFRM_POLICY_OUT, fl);
if (IS_ERR(policy)) if (IS_ERR(policy))
return PTR_ERR(policy); return PTR_ERR(policy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment