HomeFreeBSD

bsnmpd: fix segfault when trans_insert_port(..) is called with multiple

Description

bsnmpd: fix segfault when trans_insert_port(..) is called with multiple
out of order addresses

Move port->transport initialization before the TAILQ_FOREACH(..) loop
to ensure that the value is properly initialized before it's inserted
into the TAILQ.

MFC after: 1 week
PR: 217760
Submitted by: eugen
Sponsored by: Dell EMC Isilon

Details

Provenance
ngieAuthored on
Parents
rS315205: scif_sas_controller: Fix inverted logic range check
Branches
Unknown
Tags
Unknown