summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-24 10:33:36 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-24 10:33:36 -0700
commit3cd0f9e264b0ebb92d5fe8086ee2d146f3e3d02d (patch)
treef80db2dbb92ca061febfba3287ab236c8b3a6b5a
parent96dd5719d4295654f7e45ac653e66192dc4ca3c5 (diff)
downloadsamba-3cd0f9e264b0ebb92d5fe8086ee2d146f3e3d02d.tar.gz
samba-3cd0f9e264b0ebb92d5fe8086ee2d146f3e3d02d.tar.bz2
samba-3cd0f9e264b0ebb92d5fe8086ee2d146f3e3d02d.zip
s4-libnet: avoid a steal with references error
-rw-r--r--source4/libnet/libnet_vampire.c3
1 files changed, 2 insertions, 1 deletions
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