summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-07 13:42:48 +0200
committerMichael Adam <obnox@samba.org>2008-05-08 18:29:09 +0200
commit4394c2dafb65c20a0cefa168b1b7c39abb2b493b (patch)
tree9422bb7febe958be84ffbbb9a70ba3767668ba65
parent00ce73850d72536f752eef950767607a096f4b49 (diff)
downloadsamba-4394c2dafb65c20a0cefa168b1b7c39abb2b493b.tar.gz
samba-4394c2dafb65c20a0cefa168b1b7c39abb2b493b.tar.bz2
samba-4394c2dafb65c20a0cefa168b1b7c39abb2b493b.zip
registry: check for existence of key in regdb_fetch_keys() before proceeding.
Michael (This used to be commit cf653e101d1b2c38b5e9de35732421a120213170)
-rw-r--r--source3/registry/reg_backend_db.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 5cbc83e3c4..7513b3b263 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -852,6 +852,10 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
DEBUG(11,("regdb_fetch_keys: Enter key => [%s]\n", key ? key : "NULL"));
+ if (!regdb_key_exists(key)) {
+ goto fail;
+ }
+
ctr->seqnum = regdb_get_seqnum();
value = regdb_fetch_key_internal(frame, key);