From 98aeb54e83afea14a57f8d863871d395d8306d73 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 14 Mar 2024 13:23:35 +0100 Subject: [PATCH] [channel,location] fix broken length check --- channels/location/client/location_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/location/client/location_main.c b/channels/location/client/location_main.c index 03e0f95c1..e1e510164 100644 --- a/channels/location/client/location_main.c +++ b/channels/location/client/location_main.c @@ -73,7 +73,7 @@ static BOOL location_read_header(wLog* log, wStream* s, UINT16* ppduType, UINT32 *ppduLength); return FALSE; } - return Stream_CheckAndLogRequiredLengthWLog(log, s, *ppduLength); + return Stream_CheckAndLogRequiredLengthWLog(log, s, *ppduLength - 6ull); } static BOOL location_write_header(wStream* s, UINT16 pduType, UINT32 pduLength)