HomeFreeBSD

Fix SP refcount leak.

Description

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>
MFC after: 1 week

Details

Provenance
aeAuthored on
Parents
rS317430: [net80211] document having to enable privacy on the dynamic plumbed VAPs.
Branches
Unknown
Tags
Unknown