Skip to content

Commit 773451a

Browse files
author
Andras Fekete
committed
ret will be set to 1 (WOLFSSL_SUCCESS), the rest checks for 'ret == 0'
Need to use another type of return code
1 parent 0900e00 commit 773451a

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
@@ -36659,8 +36659,12 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
3665936659

3666036660
/* check for TLS_EMPTY_RENEGOTIATION_INFO_SCSV suite */
3666136661
ret = TLSX_AddEmptyRenegotiationInfo(&ssl->extensions, ssl->heap);
36662-
if (ret != WOLFSSL_SUCCESS)
36662+
if (ret != WOLFSSL_SUCCESS) {
36663+
ret = SECURE_RENEGOTIATION_E;
3666336664
goto out;
36665+
} else {
36666+
ret = 0;
36667+
}
3666436668

3666536669
extension = TLSX_Find(ssl->extensions, TLSX_RENEGOTIATION_INFO);
3666636670
if (extension) {

0 commit comments

Comments
 (0)