summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-getpeereid.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-03-24 23:07:52 +0100
committerDamien Miller <djm@mindrot.org>2003-03-24 23:07:52 +0100
commit68d893dfed6d29c92410296c19f425c95fe9fbb8 (patch)
treedc1a1e0cf23b83858254ea71033c282e6f12bd73 /openbsd-compat/bsd-getpeereid.c
parent - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. (diff)
downloadopenssh-68d893dfed6d29c92410296c19f425c95fe9fbb8.tar.xz
openssh-68d893dfed6d29c92410296c19f425c95fe9fbb8.zip
- (djm) Fix getpeerid support for 64 bit BE systems. From
Arnd Bergmann <arndb@de.ibm.com>
Diffstat (limited to '')
-rw-r--r--openbsd-compat/bsd-getpeereid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-getpeereid.c b/openbsd-compat/bsd-getpeereid.c
index c7876823d..bcda2c155 100644
--- a/openbsd-compat/bsd-getpeereid.c
+++ b/openbsd-compat/bsd-getpeereid.c
@@ -24,7 +24,7 @@
#include "includes.h"
-RCSID("$Id: bsd-getpeereid.c,v 1.1 2002/09/12 00:33:02 djm Exp $");
+RCSID("$Id: bsd-getpeereid.c,v 1.2 2003/03/24 22:07:52 djm Exp $");
#if !defined(HAVE_GETPEEREID)
@@ -33,7 +33,7 @@ int
getpeereid(int s, uid_t *euid, gid_t *gid)
{
struct ucred cred;
- size_t len = sizeof(cred);
+ socklen_t len = sizeof(cred);
if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cred, &len) < 0)
return (-1);