]> 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)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Jun 2024 02:13:33 +0000 (02:13 +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>
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;
        }