TLSX_GetSize: return error as soon as it happens

This commit is contained in:
Juliusz Sosinowicz
2026-04-28 14:54:20 +02:00
parent 558c329571
commit 9d49f7f261
+3
View File
@@ -15145,6 +15145,9 @@ static int TLSX_GetSize(TLSX* list, byte* semaphore, byte msgType,
break;
}
if (ret != 0)
return ret;
/* Early exit: stop accumulating as soon as the running total
* cannot possibly fit the 2-byte wire length. Check *before*
* marking the extension as processed so the semaphore is not