mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
fix jenkins failure
This commit is contained in:
@ -20555,7 +20555,7 @@ const char* GetCipherSegment(const WOLFSSL_CIPHER* cipher, char n[][MAX_SEGMENT_
|
||||
offset = cipher->offset;
|
||||
|
||||
if (offset >= (unsigned long)GetCipherNamesSize())
|
||||
return WOLFSSL_FAILURE;
|
||||
return NULL;
|
||||
|
||||
name = cipher_names[offset].name;
|
||||
|
||||
|
10
tests/api.c
10
tests/api.c
@ -46725,8 +46725,8 @@ static void test_SSL_CIPHER_get_xxx()
|
||||
const SSL_CIPHER* cipher = NULL;
|
||||
STACK_OF(SSL_CIPHER) *supportedCiphers = NULL;
|
||||
int i, numCiphers = 0;
|
||||
SSL_CTX* ctx;
|
||||
SSL* ssl;
|
||||
SSL_CTX* ctx = NULL;
|
||||
SSL* ssl = NULL;
|
||||
const char* testCertFile;
|
||||
const char* testKeyFile;
|
||||
char buf[256] = {0};
|
||||
@ -46845,8 +46845,10 @@ static void test_SSL_CIPHER_get_xxx()
|
||||
}
|
||||
}
|
||||
|
||||
SSL_CTX_free(ctx);
|
||||
SSL_free(ssl);
|
||||
if (ctx)
|
||||
SSL_CTX_free(ctx);
|
||||
if(ssl)
|
||||
SSL_free(ssl);
|
||||
|
||||
printf(resultFmt, passed);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user