mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
expand authid buffer
This commit is contained in:
parent
08710f80cd
commit
56ebd53e51
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user