summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/smb/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb/trans2.c b/source4/smb_server/smb/trans2.c
index 416d6f04f1..0a6c014e88 100644
--- a/source4/smb_server/smb/trans2.c
+++ b/source4/smb_server/smb/trans2.c
@@ -1487,7 +1487,7 @@ static NTSTATUS dodc_or_sysvol_referral(TALLOC_CTX *ctx,
NT_STATUS_HAVE_NO_MEMORY_AND_FREE(dc_list, context);
for(j=0; j<set[i]->count; j++) {
- dc_list[num_dcs + j] = talloc_move(context, &set[i]->names[j]);
+ dc_list[num_dcs + j] = talloc_steal(context, set[i]->names[j]);
}
num_dcs = num_dcs + set[i]->count;
TALLOC_FREE(set[i]);