From: Günther Deschner Date: Tue, 2 Mar 2021 16:45:46 +0000 (+0100) Subject: s3-libnet_join: return the allocated netr_DsRGetDCNameInfo struct X-Git-Tag: talloc-2.3.3~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada1ed29cfccd588281b11bf480012707b48cba3;p=thirdparty%2Fsamba.git s3-libnet_join: return the allocated netr_DsRGetDCNameInfo struct Guenther Signed-off-by: Guenther Deschner Reviewed-by: Alexander Bokovoy --- diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index da926d26b8c..822edc12a75 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -2667,6 +2667,9 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx, sitename = info->dc_site_name; /* info goes out of scope but the memory stays allocated on the talloc context */ + + /* return the allocated netr_DsRGetDCNameInfo struct */ + r->out.dcinfo = info; } if (pre_connect_realm != NULL) {