summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-01 12:56:38 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:20 +0200
commitb8dcade819efc10857cd412a3302bb4bdef110b0 (patch)
tree193a4f04dda42e057baeb3ebc64c5d7521e14b25 /source3/registry
parentb55942a7637afdb60cace907fa2a9df4a58e84c4 (diff)
downloadsamba-b8dcade819efc10857cd412a3302bb4bdef110b0.tar.gz
samba-b8dcade819efc10857cd412a3302bb4bdef110b0.tar.bz2
samba-b8dcade819efc10857cd412a3302bb4bdef110b0.zip
regdb: let regdb_fetch_keys() handle NULL and failure cases in the same way and return -1
metze (This used to be commit 983fd58805a429792fc8eaa816e2dd908643414e)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 095393c307..716207dbaa 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -727,7 +727,6 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
dbret = regdb->fetch(regdb, frame, string_term_tdb_data(path), &value);
if (dbret != 0) {
- ret = 0;
goto fail;
}