libads: fix get_kdc_ip_string() ...
authorRalph Boehme <slow@samba.org>
Fri, 4 Jul 2025 15:50:40 +0000 (17:50 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 17 Jul 2025 10:52:35 +0000 (13:52 +0300)
Bug-Debian: https://bugs.debian.org/1109005
Origin: upstream, https://gitlab.com/samba-team/samba/-/commit/88572cc8f629a737a1d5b33d5800f3692895233f
Forwarded: not-needed

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15881

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Mon Jul  7 16:46:29 UTC 2025 on atb-devel-224

Gbp-Pq: Name libads-fix-get_kdc_ip_string.patch

source3/libads/kerberos.c

index 75803500d3183c93e99d5f28b72e510473f6e344..145bc36cdb2a2aa3f5db82433b50cf23550b0857 100644 (file)
@@ -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;
        }