From: Howard Chu Date: Mon, 27 Aug 2012 21:27:04 +0000 (-0700) Subject: Fix typos in prev commit X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bf10bdb03a54dd0e27068128d2e1dda7ca806658;p=openldap Fix typos in prev commit --- 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 ) ) {