HomeFreeBSD

Fix Coverity issues

Description

Fix Coverity issues

  • Initialize .sun_len before passing it to strlcpy and bind.
  • Close fd on error

MFC after: 3 days
Reported by: Coverity
CID: 978283, 979581

Details

Provenance
ngieAuthored on Jan 4 2017, 2:46 AM
Parents
rG251d8e776ede: humanize_number_basic: don't leak buf
Branches
Unknown
Tags
Unknown

Event Timeline