From 2c049ebb42bff890d574e830efbb10fa18e9055e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 17 Jan 2004 11:48:14 +0000 Subject: [PATCH] fix ITS#2923 --- servers/slapd/back-ldap/search.c | 4 ++-- servers/slapd/back-ldap/suffixmassage.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 ) { -- 2.39.5