HomeFreeBSD

Fix a possible refcount leak in regen_tmpaddr().

Description

Fix a possible refcount leak in regen_tmpaddr().

public_ifa6 may be set to NULL after taking a reference to a previous
address list element. Instead, only take the reference after leaving the
loop but before releasing the address list lock.

Differential Revision: https://reviews.freebsd.org/D2253
Reviewed by: ae
MFC after: 2 weeks

Details

Provenance
markjAuthored on
Reviewer
ae
Differential Revision
D2253: Fix a possible refcount leak in regen_tmpaddr().
Parents
rS281482: MFC r280834:
Branches
Unknown
Tags
Unknown

Event Timeline