From: Volker Lendecke Date: Fri, 27 Nov 2020 21:00:10 +0000 (+0100) Subject: dsgetdcname: Fix talloc hierarchy X-Git-Tag: samba-4.14.0rc1~548 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a613ebc09d22869e47e63e17f687f44264292556;p=thirdparty%2Fsamba.git dsgetdcname: Fix talloc hierarchy Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c index 4fdfe07b06a..e6eb7efc4e9 100644 --- a/source3/libsmb/dsgetdcname.c +++ b/source3/libsmb/dsgetdcname.c @@ -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,