diff options
author | maxim <maxim@FreeBSD.org> | 2002-12-16 13:42:13 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2002-12-16 13:42:13 +0000 |
commit | 8f9af30b0c1563d5f1691218a5e82772e31b4ce3 (patch) | |
tree | b15376b7bdff0cd9a92ea20534d35297d89b5b72 /lib/libc | |
parent | f4edc60a9a1ac5def22185c6893504ff8f3279af (diff) | |
download | FreeBSD-src-8f9af30b0c1563d5f1691218a5e82772e31b4ce3.zip FreeBSD-src-8f9af30b0c1563d5f1691218a5e82772e31b4ce3.tar.gz |
o getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. It
does not hurt anything because uipc_ctloutput() does not check
sopt->sopt_level.
Pointed out by: ru
MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getpeereid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getpeereid.c b/lib/libc/gen/getpeereid.c index cf7f84c..5ecb243 100644 --- a/lib/libc/gen/getpeereid.c +++ b/lib/libc/gen/getpeereid.c @@ -43,7 +43,7 @@ getpeereid(int s, uid_t *euid, gid_t *egid) int error; xuclen = sizeof(xuc); - error = getsockopt(s, SOCK_STREAM, LOCAL_PEERCRED, &xuc, &xuclen); + error = getsockopt(s, 0, LOCAL_PEERCRED, &xuc, &xuclen); if (error != 0) return (error); if (xuc.cr_version != XUCRED_VERSION) |