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)