]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:dns_server: use the client provided algorithm for the fake TSIG structure
authorStefan Metzmacher <metze@samba.org>
Fri, 31 May 2024 06:38:24 +0000 (08:38 +0200)
committerJule Anger <janger@samba.org>
Wed, 3 Jul 2024 08:48:11 +0000 (08:48 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13019

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit bd0235cd515d5602ed9501bfc810a2487364ea10)

source4/dns_server/dns_crypto.c

index 332d2255dd436620595c0dd6913f5611100c4a89..9d44512b1cad7ffafbe9a340e546e232a3397896 100644 (file)
@@ -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;
        }