From: Howard Chu Date: Wed, 28 Jul 2010 22:26:35 +0000 (+0000) Subject: ITS#6604 use LUTIL_GETPEEREID() X-Git-Tag: MIGRATION_CVS2GIT~537 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2aac4ef2223fe55aae2812e636d49dff227b91b;p=openldap ITS#6604 use LUTIL_GETPEEREID() --- 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",