mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-22 15:47:37 +00:00
fix potential 'cannot-happen' memory leak
Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net> Reviewed by: itojun
This commit is contained in:
parent
2333afc31e
commit
7495684aca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124455
@ -1311,8 +1311,11 @@ ipsec_deepcopy_policy(src)
|
||||
struct ipsecrequest *r;
|
||||
struct secpolicy *dst;
|
||||
|
||||
if (src == NULL)
|
||||
return NULL;
|
||||
|
||||
dst = key_newsp(0);
|
||||
if (src == NULL || dst == NULL)
|
||||
if (dst == NULL)
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user