mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-04 05:04:41 +02:00
fix for derefernce warning CID 327296 & CID 327298
This commit is contained in:
@@ -7997,8 +7997,8 @@ int wolfSSL_SetOCSP_Cb(WOLFSSL* ssl,
|
|||||||
CbOCSPIO ioCb, CbOCSPRespFree respFreeCb, void* ioCbCtx)
|
CbOCSPIO ioCb, CbOCSPRespFree respFreeCb, void* ioCbCtx)
|
||||||
{
|
{
|
||||||
WOLFSSL_ENTER("wolfSSL_SetOCSP_Cb");
|
WOLFSSL_ENTER("wolfSSL_SetOCSP_Cb");
|
||||||
SSL_CM_WARNING(ssl);
|
|
||||||
if (ssl) {
|
if (ssl) {
|
||||||
|
SSL_CM_WARNING(ssl);
|
||||||
ssl->ocspIOCtx = ioCbCtx; /* use SSL specific ioCbCtx */
|
ssl->ocspIOCtx = ioCbCtx; /* use SSL specific ioCbCtx */
|
||||||
return wolfSSL_CertManagerSetOCSP_Cb(SSL_CM(ssl),
|
return wolfSSL_CertManagerSetOCSP_Cb(SSL_CM(ssl),
|
||||||
ioCb, respFreeCb, NULL);
|
ioCb, respFreeCb, NULL);
|
||||||
@@ -8589,9 +8589,10 @@ int wolfSSL_trust_peer_cert(WOLFSSL* ssl, const char* file, int type)
|
|||||||
int wolfSSL_EnableCRL(WOLFSSL* ssl, int options)
|
int wolfSSL_EnableCRL(WOLFSSL* ssl, int options)
|
||||||
{
|
{
|
||||||
WOLFSSL_ENTER("wolfSSL_EnableCRL");
|
WOLFSSL_ENTER("wolfSSL_EnableCRL");
|
||||||
|
if (ssl) {
|
||||||
SSL_CM_WARNING(ssl);
|
SSL_CM_WARNING(ssl);
|
||||||
if (ssl)
|
|
||||||
return wolfSSL_CertManagerEnableCRL(SSL_CM(ssl), options);
|
return wolfSSL_CertManagerEnableCRL(SSL_CM(ssl), options);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user