registry: explicitly use talloc context instead of talloc_tos()
authorMichael Adam <obnox@samba.org>
Mon, 17 Mar 2008 00:09:31 +0000 (01:09 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 17 Mar 2008 07:22:33 +0000 (08:22 +0100)
in regdb_fetch_keys().

Michael

source/registry/reg_backend_db.c

index 6f8f95e7b580316ca51135120e0d01c9051a5671..bac75fae14f1dfc91436771e9692ffbaa80fc7a3 100644 (file)
@@ -652,13 +652,13 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
 
        DEBUG(11,("regdb_fetch_keys: Enter key => [%s]\n", key ? key : "NULL"));
 
-       path = talloc_strdup(talloc_tos(), key);
+       path = talloc_strdup(frame, key);
        if (!path) {
                goto fail;
        }
 
        /* convert to key format */
-       path = talloc_string_sub(talloc_tos(), path, "\\", "/");
+       path = talloc_string_sub(frame, path, "\\", "/");
        if (!path) {
                goto fail;
        }