summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libnet/libnet_vampire.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c
index 92757b771e..e1e6a2a95c 100644
--- a/source4/libnet/libnet_vampire.c
+++ b/source4/libnet/libnet_vampire.c
@@ -137,8 +137,8 @@ NTSTATUS libnet_vampire_cb_prepare_db(void *private_data,
return status;
}
- s->ldb = result.samdb;
- s->lp_ctx = result.lp_ctx;
+ s->ldb = talloc_steal(s, result.samdb);
+ s->lp_ctx = talloc_steal(s, result.lp_ctx);
/* wrap the entire vapire operation in a transaction. This
isn't just cosmetic - we use this to ensure that linked