HomeFreeBSD

The ifnet pointer (ifp) in rt_newaddrmsg can be valid without ifp->if_addr…

Description

The ifnet pointer (ifp) in rt_newaddrmsg can be valid without ifp->if_addr being set if
if the ifnet is still live by way of a reference but
in line for deletion. Check ifp->if_addr before dereferencing.

Approved by: sbruno

Details

Provenance
mmacyAuthored on
Parents
rS333307: Cleanup sundry clang warnings for code that is not upstream in illumos.
Branches
Unknown
Tags
Unknown