File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -859,8 +859,8 @@ int wolfSSL_OCSP_basic_verify(WOLFSSL_OCSP_BASICRESP *bs,
859859 WOLFSSL_X509 * x = wolfSSL_sk_X509_value (certs , idx );
860860 int derSz = 0 ;
861861 const byte * der = wolfSSL_X509_get_der (x , & derSz );
862-
863- if ( derSz == ( int ) bs -> certSz && XMEMCMP (bs -> cert , der , derSz ) == 0 ) {
862+ if ( der != NULL && derSz == ( int ) bs -> certSz &&
863+ XMEMCMP (bs -> cert , der , derSz ) == 0 ) {
864864 ret = WOLFSSL_SUCCESS ;
865865 goto out ;
866866 }
Original file line number Diff line number Diff line change @@ -8715,9 +8715,10 @@ int wolfSSL_SetCRL_Cb(WOLFSSL* ssl, CbMissingCRL cb)
87158715int wolfSSL_SetCRL_IOCb(WOLFSSL* ssl, CbCrlIO cb)
87168716{
87178717 WOLFSSL_ENTER("wolfSSL_SetCRL_Cb");
8718- SSL_CM_WARNING (ssl);
8719- if (ssl)
8718+ if (ssl) {
8719+ SSL_CM_WARNING (ssl);
87208720 return wolfSSL_CertManagerSetCRL_IOCb(SSL_CM(ssl), cb);
8721+ }
87218722 else
87228723 return BAD_FUNC_ARG;
87238724}
You can’t perform that action at this time.
0 commit comments