From: Pierangelo Masarati Date: Sat, 17 Jan 2004 11:48:14 +0000 (+0000) Subject: fix ITS#2923 X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c049ebb42bff890d574e830efbb10fa18e9055e;p=openldap fix ITS#2923 --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 90254a46f3..d666d3e87a 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -144,9 +144,9 @@ ldap_back_search( dc.ctx = "searchBase"; #else dc.tofrom = 1; - dc.normalized = 0; + dc.normalized = 1; #endif - if ( ldap_back_dn_massage( &dc, &op->o_req_dn, &mbase ) ) { + if ( ldap_back_dn_massage( &dc, &op->o_req_ndn, &mbase ) ) { send_ldap_result( op, rs ); return -1; } diff --git a/servers/slapd/back-ldap/suffixmassage.c b/servers/slapd/back-ldap/suffixmassage.c index ef6b8e4d56..fb66fee3cc 100644 --- a/servers/slapd/back-ldap/suffixmassage.c +++ b/servers/slapd/back-ldap/suffixmassage.c @@ -97,9 +97,9 @@ ldap_back_dn_massage( assert( res ); + res->bv_val = NULL; + res->bv_len = 0; if ( dn == NULL ) { - res->bv_val = NULL; - res->bv_len = 0; return 0; } if ( dc->rwmap == NULL || dc->rwmap->rwm_suffix_massage == NULL ) {