mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Don't use slap_empty_bv in structures that are expected to be free'able.
This commit is contained in:
parent
9ba9ac4d9e
commit
da36670ea3
1 changed files with 2 additions and 1 deletions
|
|
@ -270,7 +270,8 @@ int slap_sasl_getdn( Connection *conn, char *id, int len,
|
|||
rc = dnNormalize2( NULL, dn, &dn2 );
|
||||
free(dn->bv_val);
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
*dn = slap_empty_bv;
|
||||
dn->bv_val = NULL;
|
||||
dn->bv_len = 0;
|
||||
return rc;
|
||||
}
|
||||
*dn = dn2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue