s3:registry: create the empty list of subkeys of the new key in regdb_create_subkey
authorMichael Adam <obnox@samba.org>
Fri, 1 Jul 2011 13:50:05 +0000 (15:50 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 4 Jul 2011 18:02:08 +0000 (20:02 +0200)
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

source3/registry/reg_backend_db.c

index 554114d6eb463b189f3ba58621a7c2d6b7260670..34c25d83576f619056a4a2bb3d670a29767fd751 100644 (file)
@@ -1130,6 +1130,8 @@ static NTSTATUS regdb_create_subkey_action(struct db_context *db,
                         win_errstr(werr)));
        }
 
+       werr = regdb_store_subkey_list(db, create_ctx->key, create_ctx->subkey);
+
 done:
        talloc_free(mem_ctx);
        return werror_to_ntstatus(werr);