fixup! Handle DS records for unsupported crypto algorithms.

This commit is contained in:
Petr Menšík
2022-11-22 22:51:11 +00:00
committed by Simon Kelley
parent 142456cfd0
commit 02f8754339

View File

@@ -1068,7 +1068,7 @@ int dnssec_validate_ds(time_t now, struct dns_header *header, size_t plen, char
algo = *p++; algo = *p++;
digest = *p++; digest = *p++;
if (!ds_digest_name(digest) || !ds_digest_name(digest)) if (!ds_digest_name(digest) || !algo_digest_name(algo))
{ {
a.log.keytag = keytag; a.log.keytag = keytag;
a.log.algo = algo; a.log.algo = algo;