getpeereid(3): Fix behavior on failure to match documentation.
authorpfg <pfg@FreeBSD.org>
Fri, 23 Feb 2018 00:28:00 +0000 (00:28 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 23 Feb 2018 00:28:00 +0000 (00:28 +0000)
commitfc32530227de6f48baa2838f7bdb7ab14eee5adb
treef16e783435b8d7312f883d66d62eceba5ca447b8
parent3102e5665ccebd8c8818064353edbc27c3337504
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
lib/libc/gen/getpeereid.c