mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user