mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
kernel-wfp: Clone acquire traffic selectors only if they exist
This commit is contained in:
parent
78bde29a7c
commit
75afbeee21
@ -1503,8 +1503,10 @@ static void acquire(private_kernel_wfp_ipsec_t *this, UINT64 filter_id,
|
|||||||
|
|
||||||
if (reqid)
|
if (reqid)
|
||||||
{
|
{
|
||||||
|
src = src ? src->clone(src) : NULL;
|
||||||
|
dst = dst ? dst->clone(dst) : NULL;
|
||||||
hydra->kernel_interface->acquire(hydra->kernel_interface, reqid,
|
hydra->kernel_interface->acquire(hydra->kernel_interface, reqid,
|
||||||
src->clone(src), dst->clone(dst));
|
src, dst);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user