HomeFreeBSD

Fix reporting errors with `gai_strerror(..)`

Description

Fix reporting errors with gai_strerror(..)

The return value (err) should be checked; not the errno value.

PR: 235200
Approved by: emaste (mentor)
Reviewed by: asomers, lwhsu
MFC after: 28 days
MFC with: r343362, r343365, r343367-r343368
Differential Revision: https://reviews.freebsd.org/D18969

Details

Provenance
ngieAuthored on
Reviewer
asomers
Differential Revision
D18969: Fix reporting errors with `gai_strerror(..)`
Parents
rS343460: MFC r343105: libedit: Avoid out of bounds read in 'bind' command
Branches
Unknown
Tags
Unknown