summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-08 18:21:13 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-08-12 16:48:47 +1200
commitfd54ffa66c194bab5cb2c1343ef063bf9e4eedc6 (patch)
tree9e903f94d30c4365302f24137cfc539a8132ac20 /source4/libcli
parentae6166a3c10d3ce9f9a0d08dcbfcc8afd72ca461 (diff)
downloadsamba-fd54ffa66c194bab5cb2c1343ef063bf9e4eedc6.tar.gz
samba-fd54ffa66c194bab5cb2c1343ef063bf9e4eedc6.tar.bz2
samba-fd54ffa66c194bab5cb2c1343ef063bf9e4eedc6.zip
s4:libcli: avoid talloc_reference() in finddcs_nbt_send()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/libcli')
-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);
}