From 7a457c6813d35c6a5c21df474b32bd9b24bb94d4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 31 May 2024 08:38:24 +0200 Subject: [PATCH] s4:dns_server: use the client provided algorithm for the fake TSIG structure BUG: https://bugzilla.samba.org/show_bug.cgi?id=13019 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett (cherry picked from commit bd0235cd515d5602ed9501bfc810a2487364ea10) --- source4/dns_server/dns_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dns_server/dns_crypto.c b/source4/dns_server/dns_crypto.c index 332d2255dd4..9d44512b1ca 100644 --- a/source4/dns_server/dns_crypto.c +++ b/source4/dns_server/dns_crypto.c @@ -193,7 +193,7 @@ WERROR dns_verify_tsig(struct dns_server *dns, } check_rec->rr_class = DNS_QCLASS_ANY; check_rec->ttl = 0; - check_rec->algorithm_name = talloc_strdup(check_rec, tkey->algorithm); + check_rec->algorithm_name = talloc_strdup(check_rec, algorithm); if (check_rec->algorithm_name == NULL) { return WERR_NOT_ENOUGH_MEMORY; } -- 2.47.2