mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Bugfix: rdata flags must go through hash function in network byte order.
This commit is contained in:
committed by
Simon Kelley
parent
0360a524df
commit
4b0eecbb44
@@ -181,6 +181,10 @@ static int begin_rrsig_validation(struct dns_header *header, size_t pktlen,
|
||||
if (!alg->vtbl->set_signature(alg, sig, sigrdlen))
|
||||
return 0;
|
||||
|
||||
sigtype = htons(sigtype);
|
||||
sigclass = htons(sigclass);
|
||||
sigttl = htonl(sigttl);
|
||||
|
||||
alg->vtbl->begin_data(alg);
|
||||
alg->vtbl->add_data(alg, sigrdata, 18);
|
||||
alg->vtbl->add_data(alg, signer_name, strlen(signer_name));
|
||||
|
||||
Reference in New Issue
Block a user