Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
af_key: fix leaks in key_pol_get_resp and dump_sp.
In both functions, if pfkey_xfrm_policy2msg failed we leaked the newly allocated sk_buff. Free it on error. Fixes: 55569ce ("Fix conversion between IPSEC_MODE_xxx and XFRM_MODE_xxx.") Reported-by: [email protected] Signed-off-by: Jeremy Sowden <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
- Loading branch information