ret will be set to 1 (WOLFSSL_SUCCESS), the rest checks for 'ret == 0'

Need to use another type of return code
This commit is contained in:
Andras Fekete
2024-06-24 12:11:57 -04:00
parent 0900e00ee7
commit 773451a5dc

View File

@@ -36659,8 +36659,12 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
/* check for TLS_EMPTY_RENEGOTIATION_INFO_SCSV suite */
ret = TLSX_AddEmptyRenegotiationInfo(&ssl->extensions, ssl->heap);
if (ret != WOLFSSL_SUCCESS)
if (ret != WOLFSSL_SUCCESS) {
ret = SECURE_RENEGOTIATION_E;
goto out;
} else {
ret = 0;
}
extension = TLSX_Find(ssl->extensions, TLSX_RENEGOTIATION_INFO);
if (extension) {