]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libads: fix get_kdc_ip_string() ... v4-22-test
authorRalph Boehme <slow@samba.org>
Fri, 4 Jul 2025 15:50:40 +0000 (17:50 +0200)
committerJule Anger <janger@samba.org>
Mon, 21 Jul 2025 09:30:29 +0000 (09:30 +0000)
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

(cherry picked from commit 88572cc8f629a737a1d5b33d5800f3692895233f)

Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Mon Jul 21 09:30:29 UTC 2025 on atb-devel-224

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;
        }