mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
[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:
parent
3b26a9a655
commit
f7944fb191
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user