Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ae8c0577 authored by David S. Miller's avatar David S. Miller
Browse files

[XFRM]: Clearing xfrm_policy_count[] to zero during flush is incorrect.



When we flush policies, we do a type match so we might not
actually delete all policies matching a certain direction.

So keep track of how many policies we actually kill and
subtract that number from xfrm_policy_count[dir] at the
end.

Based upon a patch by Masahide NAKAMURA.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 667bbcb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment