From bf10bdb03a54dd0e27068128d2e1dda7ca806658 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 27 Aug 2012 14:27:04 -0700 Subject: [PATCH] Fix typos in prev commit --- servers/slapd/back-mdb/search.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-mdb/search.c b/servers/slapd/back-mdb/search.c index f3d51cb550..46bc7b170e 100644 --- a/servers/slapd/back-mdb/search.c +++ b/servers/slapd/back-mdb/search.c @@ -640,7 +640,7 @@ loop_begin: /* get the entry */ rs->sr_err = mdb_id2edata( op, mci, id, &edata ); - if ( rs->sr_err == MDB_NOTFOUND ) { + if ( rs->sr_err == MDB_NOTFOUND ) { if( !MDB_IDL_IS_RANGE(candidates) ) { /* only complain for non-range IDLs */ Debug( LDAP_DEBUG_TRACE, @@ -712,10 +712,13 @@ loop_begin: rs->sr_err = mdb_entry_decode( op, &edata, &e ); if ( rs->sr_err ) { rs->sr_err = LDAP_OTHER; - rs->sr_text = "internal error in mdb_endtry_decode"; + rs->sr_text = "internal error in mdb_entry_decode"; send_ldap_result( op, rs ); goto done; } + e->e_id = id; + e->e_name.bv_val = NULL; + e->e_nname.bv_val = NULL; } if ( is_entry_subentry( e ) ) { -- 2.39.5