From f26a0e0db0ee1a59fc6b256e8c9a00addda54688 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 11 Apr 2003 04:23:21 +0000 Subject: [PATCH] Don't pass NULL DN to rewrite_session(), causes assertion failure (Howard might like to check that this is the correct fix) --- servers/slapd/back-ldap/suffixmassage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/suffixmassage.c b/servers/slapd/back-ldap/suffixmassage.c index 411a9051f8..53193a2025 100644 --- a/servers/slapd/back-ldap/suffixmassage.c +++ b/servers/slapd/back-ldap/suffixmassage.c @@ -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 ) { -- 2.39.5