From: Luke Howard Date: Fri, 11 Apr 2003 04:23:21 +0000 (+0000) Subject: Don't pass NULL DN to rewrite_session(), causes assertion failure X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~398 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f26a0e0db0ee1a59fc6b256e8c9a00addda54688;p=openldap Don't pass NULL DN to rewrite_session(), causes assertion failure (Howard might like to check that this is the correct fix) --- 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 ) {