]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 20 Sep 2006 20:22:59 +0000 (20:22 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 20 Sep 2006 20:22:59 +0000 (20:22 +0000)
servers/slapd/back-bdb/tools.c

index 604471c57aa4bb700a44aa349ed04506b426987d..e16be3f66bb1c108f09aa173154ecdc9772228a7 100644 (file)
@@ -286,6 +286,7 @@ Entry* bdb_tool_entry_get( BackendDB *be, ID id )
        eh.data += eoff;
 
     rc = cursor->c_get( cursor, &key, &data, DB_CURRENT );
+       if ( rc ) goto leave;
 
 #ifdef SLAP_ZONE_ALLOC
        /* FIXME: will add ctx later */