From: Stefan Metzmacher Date: Fri, 31 May 2024 06:38:24 +0000 (+0200) Subject: s4:dns_server: use the client provided algorithm for the fake TSIG structure X-Git-Tag: samba-4.19.8~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a457c6813d35c6a5c21df474b32bd9b24bb94d4;p=thirdparty%2Fsamba.git 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) --- 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; }