diff options
-rw-r--r-- | source3/registry/reg_backend_db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 65ff0aec69..e04374b917 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -1438,6 +1438,9 @@ static WERROR regdb_fetch_keys_internal(struct db_context *db, const char *key, goto done; } + werr = regsubkey_ctr_reinit(ctr); + W_ERROR_NOT_OK_GOTO_DONE(werr); + werr = regsubkey_ctr_set_seqnum(ctr, db->get_seqnum(db)); W_ERROR_NOT_OK_GOTO_DONE(werr); @@ -1457,9 +1460,6 @@ static WERROR regdb_fetch_keys_internal(struct db_context *db, const char *key, goto done; } - werr = regsubkey_ctr_reinit(ctr); - W_ERROR_NOT_OK_GOTO_DONE(werr); - for (i=0; i<num_items; i++) { len += tdb_unpack(buf+len, buflen-len, "f", subkeyname); werr = regsubkey_ctr_addkey(ctr, subkeyname); |