Don't use slap_empty_bv in structures that are expected to be free'able.

This commit is contained in:
Howard Chu 2002-05-08 23:16:17 +00:00
parent 9ba9ac4d9e
commit da36670ea3

View file

@ -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;