From 65ef57403182fce13b5266ba7838558ba2ad008f Mon Sep 17 00:00:00 2001 From: shimun Date: Wed, 1 Apr 2020 19:49:49 +0200 Subject: [PATCH] handle surplus options --- src/cbor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cbor.rs b/src/cbor.rs index 173f610..24a6f56 100644 --- a/src/cbor.rs +++ b/src/cbor.rs @@ -423,7 +423,9 @@ impl OptionsInfo { "clientPin" => options.client_pin = Some(decoder.bool()?), "up" => options.up = decoder.bool()?, "uv" => options.uv = Some(decoder.bool()?), - _ => continue, + _ => { + decoder.bool()?; + } } } Ok(options)