Skip to content

Commit 9d49f7f

Browse files
committed
TLSX_GetSize: return error as soon as it happens
1 parent 558c329 commit 9d49f7f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/tls.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15145,6 +15145,9 @@ static int TLSX_GetSize(TLSX* list, byte* semaphore, byte msgType,
1514515145
break;
1514615146
}
1514715147

15148+
if (ret != 0)
15149+
return ret;
15150+
1514815151
/* Early exit: stop accumulating as soon as the running total
1514915152
* cannot possibly fit the 2-byte wire length. Check *before*
1515015153
* marking the extension as processed so the semaphore is not

0 commit comments

Comments
 (0)