From 211e3dfaef32d8736962e25f0b096dad951b7104 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 27 Jun 2026 23:38:49 +0200 Subject: [PATCH] Correctly account for offset when decmpressing packets --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_packet.c b/src/net_packet.c index b9edd6c4..fa82d78f 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -1108,7 +1108,7 @@ bool receive_sptps_record(void *handle, uint8_t type, const void *data, uint16_t int offset = (type & PKT_MAC) ? 0 : 14; if(type & PKT_COMPRESSED) { - length_t ulen = uncompress_packet(DATA(&inpkt) + offset, MAXSIZE - inpkt.offset, (const uint8_t *)data, len, from->incompression); + length_t ulen = uncompress_packet(DATA(&inpkt) + offset, MAXSIZE - inpkt.offset - offset, (const uint8_t *)data, len, from->incompression); if(!ulen) { return false; -- 2.47.3