diff options
Diffstat (limited to 'autocrypt')
-rw-r--r-- | autocrypt/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs index 06dbd696..b42e3153 100644 --- a/autocrypt/src/lib.rs +++ b/autocrypt/src/lib.rs @@ -686,7 +686,7 @@ impl<'a> AutocryptSetupMessageParser<'a> { // Recurse into the SEIP packet. let mut ppr = self.pp.recurse()?.1; - if ppr.as_ref().map(|pp| pp.recursion_depth()) != Some(1) { + if ppr.as_ref().map(|pp| pp.recursion_depth()).ok() != Some(1) { return Err( Error::MalformedMessage( "SEIP container empty, but expected a Literal Data packet" |