mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Fix previous commit, free in wrong place
This commit is contained in:
parent
b057507e23
commit
379f84ba47
1 changed files with 2 additions and 2 deletions
|
|
@ -233,16 +233,16 @@ int slap_sasl_getdn( Connection *conn, char *id, int len,
|
|||
dn->bv_val = ch_malloc( len+1 );
|
||||
p = slap_strcopy( dn->bv_val, "uid=" );
|
||||
p = slap_strcopy( p, c1 );
|
||||
ch_free( c1 );
|
||||
|
||||
if( realm ) {
|
||||
p = slap_strcopy( p, ",cn=" );
|
||||
p = slap_strcopy( p, realm );
|
||||
realm[-1] = '@';
|
||||
} else if( user_realm && *user_realm ) {
|
||||
p = slap_strcopy( p, ",cn=" );
|
||||
p = slap_strcopy( p, user_realm );
|
||||
}
|
||||
ch_free( c1 );
|
||||
|
||||
if( conn->c_sasl_bind_mech.bv_len ) {
|
||||
p = slap_strcopy( p, ",cn=" );
|
||||
p = slap_strcopy( p, conn->c_sasl_bind_mech.bv_val );
|
||||
|
|
|
|||
Loading…
Reference in a new issue