summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-24 10:28:10 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-30 08:45:06 +0200
commit05a9b7c32dd5831d2099a1c634d9380fe12a530e (patch)
tree2557db5ca501e98a78f44fe7081597c46febf807 /source4/smb_server
parent72833e416f6ffc10eb547ec7d5d9a66ee912a0c1 (diff)
downloadsamba-05a9b7c32dd5831d2099a1c634d9380fe12a530e.tar.gz
samba-05a9b7c32dd5831d2099a1c634d9380fe12a530e.tar.bz2
samba-05a9b7c32dd5831d2099a1c634d9380fe12a530e.zip
s4:smb_server/smb/trans2.c - "talloc_move" isn't strictly necessary here
Since the "set" will be free'd afterwards "talloc_steal" is enough. Reviewed-by: Tridge
Diffstat (limited to 'source4/smb_server')
-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]);