summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/finddcs_nbt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/finddcs_nbt.c b/source4/libcli/finddcs_nbt.c
index 6a5d1fd856..147efde61c 100644
--- a/source4/libcli/finddcs_nbt.c
+++ b/source4/libcli/finddcs_nbt.c
@@ -95,7 +95,7 @@ struct tevent_req *finddcs_nbt_send(TALLOC_CTX *mem_ctx,
}
if (domain_sid) {
- state->domain_sid = talloc_reference(state, domain_sid);
+ state->domain_sid = dom_sid_dup(state, domain_sid);
if (tevent_req_nomem(state->domain_sid, req)) {
return tevent_req_post(req, event_ctx);
}