]> git.sur5r.net Git - openldap/commitdiff
Fix typos in prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 27 Aug 2012 21:27:04 +0000 (14:27 -0700)
committerHoward Chu <hyc@openldap.org>
Mon, 27 Aug 2012 21:27:04 +0000 (14:27 -0700)
servers/slapd/back-mdb/search.c

index f3d51cb5505e69ee2124656c54168acd1d655d3e..46bc7b170eab23da36617fb632a1952571e306ee 100644 (file)
@@ -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 ) ) {