From aa12305945df5f1578250b56ae2f3653b051736f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 Sep 2004 08:41:39 +0000 Subject: r2680: switched the libcli/raw/ code over to use talloc_reference(), which simplifies things quite a bit (This used to be commit c82a9cf750829c4f6982ca3133295c8599023c4e) --- source4/rpc_server/samr/samdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/rpc_server') diff --git a/source4/rpc_server/samr/samdb.c b/source4/rpc_server/samr/samdb.c index 33c4eec86a..4160ef78fc 100644 --- a/source4/rpc_server/samr/samdb.c +++ b/source4/rpc_server/samr/samdb.c @@ -68,8 +68,7 @@ void *samdb_connect(TALLOC_CTX *mem_ctx) second open due to the broken nature of unix locking. */ if (ctx != NULL) { - talloc_increase_ref_count(ctx); - return ctx; + return talloc_reference(mem_ctx, ctx); } ctx = talloc_p(mem_ctx, struct samdb_context); -- cgit