fix long_packet_missing calculation

This commit is contained in:
Markus Meissner
2023-01-30 22:26:03 +01:00
parent 84de5d4fe3
commit 1f9b6820a8
+1 -1
View File
@@ -150,7 +150,7 @@ where
if pl > PACKET_SIZE - CCID_HEADER_LEN {
self.receiving_long = true;
self.in_chain = 1;
self.long_packet_missing = pl - PACKET_SIZE - CCID_HEADER_LEN;
self.long_packet_missing = pl - (PACKET_SIZE - CCID_HEADER_LEN);
self.packet_len = pl;
return;
} else {