mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-17 10:59:36 +00:00
Before using a key for validation, also verify that algorithm matches.
This commit is contained in:
1 parent
47f99dd2b3
commit
e6c2a670fe
1 file changed
+2
@@ -252,6 +252,8 @@ static void dnssec_parserrsig(struct dns_header *header, size_t pktlen,
|
||||
|
||||
if (crecp->addr.key.keytag != val.keytag)
|
||||
continue;
|
||||
if (crecp->addr.key.algo != verifyalg_algonum(val.alg))
|
||||
continue;
|
||||
|
||||
printf("RRSIG: found DNSKEY %d in cache, attempting validation\n", val.keytag);
|
||||
|
||||
|
||||
Reference in new issue
Block a user