HomeFreeBSD

MFC r317431:

Description

MFC r317431:

Fix SP refcount leak.

PCB SP cache acquires extra reference, when SP is stored in the cache.
Release this reference when PCB is destroyed in ipsec_delete_pcbpolicy().
In ipsec_copy_pcbpolicy() release reference to SP in case if sp_in or
sp_out are not NULL.

Reported by:	Slawa Olhovchenkov <slw at zxy spb ru>

Details

Provenance
aeAuthored on
Parents
rS317732: Decode the third argument of socket().
Branches
Unknown
Tags
Unknown