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: tdb-1.4.11~439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd0235cd515d5602ed9501bfc810a2487364ea10;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 --- 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; }