From 3cd0f9e264b0ebb92d5fe8086ee2d146f3e3d02d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 24 Sep 2009 10:33:36 -0700 Subject: s4-libnet: avoid a steal with references error --- source4/libnet/libnet_vampire.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index 19453a4d65..c8161e182d 100644 --- a/source4/libnet/libnet_vampire.c +++ b/source4/libnet/libnet_vampire.c @@ -38,6 +38,7 @@ #include "auth/auth.h" #include "param/param.h" #include "param/provision.h" +#include "libcli/security/dom_sid.h" /* List of tasks vampire.py must perform: @@ -744,7 +745,7 @@ NTSTATUS libnet_Vampire(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, } r->out.domain_name = talloc_steal(r, join->out.domain_name); - r->out.domain_sid = talloc_steal(r, join->out.domain_sid); + r->out.domain_sid = dom_sid_dup(r, join->out.domain_sid); /* commit the transaction now we know the secrets were written * out properly -- cgit