Don't pass NULL DN to rewrite_session(), causes assertion failure

(Howard might like to check that this is the correct fix)
This commit is contained in:
Luke Howard 2003-04-11 04:23:21 +00:00
parent 7cb946924e
commit f26a0e0db0

View File

@ -47,7 +47,7 @@ ldap_back_dn_massage(
{
int rc = 0;
switch (rewrite_session( dc->rwmap->rwm_rw, dc->ctx, dn->bv_val, dc->conn,
switch (rewrite_session( dc->rwmap->rwm_rw, dc->ctx, (dn->bv_len ? dn->bv_val : ""), dc->conn,
&res->bv_val )) {
case REWRITE_REGEXEC_OK:
if ( res->bv_val != NULL ) {