HomeFreeBSD

getpeereid(3): Fix behavior on failure to match documentation.

Description

getpeereid(3): Fix behavior on failure to match documentation.

According to the getpeereid(3) documentation, on failure the value -1 is
returned and the global variable errno is set to indicate the error. We
were returning the error instead.

Obtained from: Apple's Libc-1244.30.3
MFC after: 5 days

Details

Provenance
pfgAuthored on
Parents
rS329845: Fix numerous Coverity issues in mptutil
Branches
Unknown
Tags
Unknown