Skip to content

Commit 38335f4

Browse files
Merge pull request #7678 from bandi13/fixReturnType
ret will be set to 1 (WOLFSSL_SUCCESS), the rest checks for 'ret == 0'
2 parents 263eb6c + 773451a commit 38335f4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/internal.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36661,8 +36661,12 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
3666136661

3666236662
/* check for TLS_EMPTY_RENEGOTIATION_INFO_SCSV suite */
3666336663
ret = TLSX_AddEmptyRenegotiationInfo(&ssl->extensions, ssl->heap);
36664-
if (ret != WOLFSSL_SUCCESS)
36664+
if (ret != WOLFSSL_SUCCESS) {
36665+
ret = SECURE_RENEGOTIATION_E;
3666536666
goto out;
36667+
} else {
36668+
ret = 0;
36669+
}
3666636670

3666736671
extension = TLSX_Find(ssl->extensions, TLSX_RENEGOTIATION_INFO);
3666836672
if (extension) {

0 commit comments

Comments
 (0)