mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
the swap was intended; please see ITS#3876
This commit is contained in:
parent
ddf6c7b298
commit
4e6fd1a44f
@ -1362,14 +1362,14 @@ slapd_handle_listener(
|
||||
|
||||
if( getpeereid( s, &uid, &gid ) == 0 ) {
|
||||
authid.bv_val = ch_malloc(
|
||||
STRLENOF( "uidNumber=4294967295+gidNumber=4294967295,"
|
||||
STRLENOF( "gidNumber=4294967295+uidNumber=4294967295,"
|
||||
"cn=peercred,cn=external,cn=auth" ) + 1 );
|
||||
authid.bv_len = sprintf( authid.bv_val,
|
||||
"uidNumber=%d+gidNumber=%d,"
|
||||
"gidNumber=%d+uidNumber=%d,"
|
||||
"cn=peercred,cn=external,cn=auth",
|
||||
(int) gid, (int) uid );
|
||||
assert( authid.bv_len <=
|
||||
STRLENOF( "uidNumber=4294967295+gidNumber=4294967295,"
|
||||
STRLENOF( "gidNumber=4294967295+uidNumber=4294967295,"
|
||||
"cn=peercred,cn=external,cn=auth" ) );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user