[channel,location] fix broken length check

This commit is contained in:
Armin Novak 2024-03-14 13:23:35 +01:00 committed by Martin Fleisz
parent 8df13033d5
commit 98aeb54e83
1 changed files with 1 additions and 1 deletions

View File

@ -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)