From: Ralph Boehme Date: Fri, 4 Jul 2025 15:50:40 +0000 (+0200) Subject: libads: fix get_kdc_ip_string() ... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88572cc8f629a737a1d5b33d5800f3692895233f;p=thirdparty%2Fsamba.git libads: fix get_kdc_ip_string() ... BUG: https://bugzilla.samba.org/show_bug.cgi?id=15881 Signed-off-by: Ralph Boehme Reviewed-by: Guenther Deschner Autobuild-User(master): Günther Deschner Autobuild-Date(master): Mon Jul 7 16:46:29 UTC 2025 on atb-devel-224 --- diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 75803500d31..145bc36cdb2 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -1230,6 +1230,7 @@ static char *get_kdc_ip_string(char *mem_ctx, if (!NT_STATUS_IS_OK(status)) { DBG_DEBUG("netlogon_pings failed: %s\n", nt_errstr(status)); + result = talloc_move(mem_ctx, &kdc_str); goto out; }