s4-ldb: added a missing ltdb_unlock_read()
authorAndrew Tridgell <tridge@samba.org>
Wed, 9 Dec 2009 03:36:50 +0000 (14:36 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 9 Dec 2009 07:18:25 +0000 (18:18 +1100)
source4/lib/ldb/ldb_tdb/ldb_search.c

index a6647ccd506bc34a5953470118fd4efa438ccb0b..268c2f3c353bea328265d8e03b2ae8513ee7e9a4 100644 (file)
@@ -567,6 +567,7 @@ int ltdb_search(struct ltdb_context *ctx)
                                 * full search or we may return
                                 * duplicate entries
                                 */
+                               ltdb_unlock_read(module);
                                return LDB_ERR_OPERATIONS_ERROR;
                        }
                        ret = ltdb_search_full(ctx);