From 2a2e22cf724ab5e0d3b2055a67e3b02e08ca2536 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 9 Mar 2023 04:17:04 +0100 Subject: [PATCH] fix --- kubi/src/networking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubi/src/networking.rs b/kubi/src/networking.rs index cc80398..5541bd0 100644 --- a/kubi/src/networking.rs +++ b/kubi/src/networking.rs @@ -114,7 +114,7 @@ fn check_server_hello_response( fn decompress_chunk_packet(data: &Box<[u8]>) -> Result { let data_ref = &data[1..]; let decompressed = decompress_size_prepended(data_ref).ok().context("Decompress failed")?; - let deserialized = postcard::from_bytes(&decompressed)?; + let deserialized = postcard::from_bytes(&decompressed).ok().context("Deserialization failed")?; Ok(deserialized) }