git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96dd571
)
s4-libnet: avoid a steal with references error
author
Andrew Tridgell
<tridge@samba.org>
Thu, 24 Sep 2009 17:33:36 +0000
(10:33 -0700)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 24 Sep 2009 17:33:36 +0000
(10:33 -0700)
source4/libnet/libnet_vampire.c
patch
|
blob
|
history
diff --git
a/source4/libnet/libnet_vampire.c
b/source4/libnet/libnet_vampire.c
index 19453a4d650723dffd310185f8a7741b3ed0c000..c8161e182d662e6a22dc0fcea8421ca60bdae539 100644
(file)
--- 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