Skip to content
Snippets Groups Projects

libdnssec: ignore reserved bits in DNSKEY flags

Merged Vladimír Čunát requested to merge dnskey-flags into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -64,7 +64,7 @@ int dnskey_rdata_to_crypto_key(const dnssec_binary_t *rdata, gnutls_pubkey_t *ke
flags_hi = wire_ctx_read_u8(&wire);
wire_ctx_set_offset(&wire, DNSKEY_RDATA_OFFSET_PROTOCOL);
protocol = wire_ctx_read_u8(&wire);
if (flags_hi != 0x1 || protocol != 0x3) {
if (!(flags_hi & 0x1) || protocol != 0x3) {
return DNSSEC_INVALID_PUBLIC_KEY;
}
Loading