]> git.sur5r.net Git - openldap/commitdiff
Don't pass NULL DN to rewrite_session(), causes assertion failure
authorLuke Howard <lukeh@openldap.org>
Fri, 11 Apr 2003 04:23:21 +0000 (04:23 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 11 Apr 2003 04:23:21 +0000 (04:23 +0000)
(Howard might like to check that this is the correct fix)

servers/slapd/back-ldap/suffixmassage.c

index 411a9051f8b08597c651166d7118200dca1f5ee2..53193a2025577b8fbeae0f5d8d450302e0a6c236 100644 (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 ) {