nfqws: deprecate single split modes, optimize code

This commit is contained in:
bol-van
2024-11-13 11:54:40 +03:00
parent 8bc74333b8
commit 14e9fc4d43
5 changed files with 110 additions and 153 deletions

View File

@@ -511,8 +511,7 @@ size_t TLSPos(uint8_t posmarker, int16_t pos, const uint8_t *data, size_t sz)
{
if (posmarker==PM_SNI_EXT)
{
offset = ext-data+1+pos;
return (offset>=0 && offset<sz) ? offset : 0;
return CheckPos(sz,ext-data+pos);
}
else
{