HomeFreeBSD

Call endnetconfig on nc_handle sooner to avoid leaking nc_handle if tmpnconf

Description

Call endnetconfig on nc_handle sooner to avoid leaking nc_handle if tmpnconf
was NULL

This would theoretically happen if the netconfig protocol family and protocol
semantics were never matched.

MFC after: 2 weeks
Reported by: Coverity
CID: 978179
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
ngieAuthored on
Parents
rS300387: getnetid(..): consistently fclose fd at the end of the function
Branches
Unknown
Tags
Unknown