s4:dsdb talloc_steal the backend module to under the partition
authorAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2009 05:09:10 +0000 (16:09 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2009 11:43:57 +0000 (22:43 +1100)
source4/dsdb/samdb/ldb_modules/partition_init.c

index d8733a44c5a18d30cedb2de8c6ffda42893c4b62..c54fa5012587905ba9fda548f4ac89477a92bdd6 100644 (file)
@@ -250,6 +250,7 @@ static int new_partition_from_dn(struct ldb_context *ldb, struct partition_priva
        if (ret != LDB_SUCCESS) {
                return ret;
        }
+       talloc_steal((*partition), backend_module);
 
        modules = find_modules_for_dn(data, dn);