]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsgetdcname: Fix talloc hierarchy
authorVolker Lendecke <vl@samba.org>
Fri, 27 Nov 2020 21:00:10 +0000 (22:00 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 30 Nov 2020 22:24:37 +0000 (22:24 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/dsgetdcname.c

index 4fdfe07b06ac88ac2c5f02a3ef8e6b9ca3c585e5..e6eb7efc4e9071c202ae91ac262ff1f81677e377 100644 (file)
@@ -601,7 +601,7 @@ static NTSTATUS discover_dc_dns(TALLOC_CTX *mem_ctx,
                }
 
                dclist[ret_count].hostname =
-                       talloc_move(mem_ctx, &dcs[i].hostname);
+                       talloc_move(dclist, &dcs[i].hostname);
 
                /*
                 * Pick the first IPv4 address,