]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libads: fix get_kdc_ip_string() ...
authorRalph Boehme <slow@samba.org>
Fri, 4 Jul 2025 15:50:40 +0000 (17:50 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 7 Jul 2025 16:46:29 +0000 (16:46 +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

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