From: Ralph Boehme Date: Fri, 4 Jul 2025 15:50:40 +0000 (+0200) Subject: libads: fix get_kdc_ip_string() ... X-Git-Tag: archive/raspbian/2%4.22.3+dfsg-4+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2a750f6dc0eecad26a3dd5b8ff86eac1f71af561;p=samba.git libads: fix get_kdc_ip_string() ... 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 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 Gbp-Pq: Name libads-fix-get_kdc_ip_string.patch --- diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 75803500..145bc36c 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; }