expand authid buffer

This commit is contained in:
Kurt Zeilenga 2002-12-08 07:56:49 +00:00
parent 08710f80cd
commit 56ebd53e51
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ ldap_int_open_connection(
* yet anyway.
*/
if( proto == LDAP_PROTO_IPC ) {
char authid[sizeof("uidNumber=XXXXXX,gidNumber=XXXXXX,"
char authid[sizeof("uidNumber=4294967295,gidNumber=4294967295,"
"cn=peercred,cn=external,cn=auth")];
sprintf( authid, "uidNumber=%d,gidNumber=%d,"
"cn=peercred,cn=external,cn=auth",

View File

@ -1561,7 +1561,7 @@ slapd_daemon_task(
if( getpeereid( s, &uid, &gid ) == 0 ) {
authid = ch_malloc(
sizeof("uidNumber=XXXXXX+gidNumber=XXXXXX,"
sizeof("uidNumber=4294967295+gidNumber=4294967295,"
"cn=peercred,cn=external,cn=auth"));
sprintf(authid, "uidNumber=%d+gidNumber=%d,"
"cn=peercred,cn=external,cn=auth",