Skip non-signing keys

This commit is contained in:
Giovanni Bajo authored and Simon Kelley committed 2013-08-20 15:41:20 +01:00
1 parent 4137b84e4e
commit 0d829ebc69
1 file changed
+3
+3
View File
@@ -299,6 +299,9 @@ int dnssec_parsekey(struct dns_header *header, size_t pktlen, char *owner, unsig
if (proto != 3)
return 0;
/* Skip non-signing keys (as specified in RFC4034 */
if (!(flags & 0x100))
return 0;
switch (alg)
{