From d2aac4ef2223fe55aae2812e636d49dff227b91b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 28 Jul 2010 22:26:35 +0000 Subject: [PATCH] ITS#6604 use LUTIL_GETPEEREID() --- contrib/slapd-modules/nssov/nssov.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/slapd-modules/nssov/nssov.c b/contrib/slapd-modules/nssov/nssov.c index b5ffeb64aa..84e05b2e6f 100644 --- a/contrib/slapd-modules/nssov/nssov.c +++ b/contrib/slapd-modules/nssov/nssov.c @@ -260,9 +260,11 @@ static void handleconnection(nssov_info *ni,int sock,Operation *op) uid_t uid; gid_t gid; char authid[sizeof("gidNumber=4294967295+uidNumber=424967295,cn=peercred,cn=external,cn=auth")]; + char peerbuf[8]; + struct berval peerbv = { sizeof(peerbuf), peerbuf }; /* log connection */ - if (lutil_getpeereid(sock,&uid,&gid)) + if (LUTIL_GETPEEREID(sock,&uid,&gid,&peerbv)) Debug( LDAP_DEBUG_TRACE,"nssov: connection from unknown client: %s\n",strerror(errno),0,0); else Debug( LDAP_DEBUG_TRACE,"nssov: connection from uid=%d gid=%d\n", -- 2.39.5