s3-libnet_join: return the allocated netr_DsRGetDCNameInfo struct
authorGünther Deschner <gd@samba.org>
Tue, 2 Mar 2021 16:45:46 +0000 (17:45 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 14 Jul 2021 16:49:30 +0000 (16:49 +0000)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/libnet/libnet_join.c

index da926d26b8c301ac0cdbf48e7b90991037ab6a3f..822edc12a75ae428e4eeae676bbfe3b009692012 100644 (file)
@@ -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) {