]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r19337: never alloc on module unless you mean to attach a context to
authorSimo Sorce <idra@samba.org>
Mon, 16 Oct 2006 12:30:02 +0000 (12:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:12 +0000 (14:21 -0500)
it to keep the data around as long as the module lives
(This used to be commit d2073c1f7e1bc674358df5da0dc09e183b4b8712)

source4/dsdb/samdb/ldb_modules/entryUUID.c

index 215d777d00bb50a1e8e3d1cdfdbf462ab7f4d51b..38f366dfa2cf711ef8f44dde7bb39af685465ab6 100644 (file)
@@ -510,7 +510,7 @@ static int find_base_dns(struct ldb_module *module,
                "namingContexts",
                NULL
        };
-       req = talloc(module, struct ldb_request);
+       req = talloc(entryUUID_private, struct ldb_request);
        if (req == NULL) {
                ldb_set_errstring(module->ldb, "Out of Memory");
                return LDB_ERR_OPERATIONS_ERROR;