diff options
Diffstat (limited to 'openpgp/src/armor.rs')
-rw-r--r-- | openpgp/src/armor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs index 876b3500..cd6b6669 100644 --- a/openpgp/src/armor.rs +++ b/openpgp/src/armor.rs @@ -885,7 +885,7 @@ fn is_armored_pgp_blob(bytes: &[u8]) -> bool { } else { let mut br = buffered_reader::Memory::new(&d); if let Ok(header) = Header::parse(&mut br) { - header.ctb.tag.valid_start_of_message() + header.ctb().tag.valid_start_of_message() && header.valid(false).is_ok() } else { false |