@@ -264,7 +264,7 @@ static int X509StoreVerifyCert(WOLFSSL_X509_STORE_CTX* ctx)
264264 WOLFSSL_FILETYPE_ASN1 );
265265 SetupStoreCtxError (ctx , ret );
266266 #if defined(OPENSSL_ALL ) || defined(WOLFSSL_QT )
267- if (ctx -> store && ctx -> store -> verify_cb )
267+ if (ctx -> store -> verify_cb )
268268 ret = ctx -> store -> verify_cb (ret >= 0 ? 1 : 0 , ctx ) == 1 ? 0 : ret ;
269269 #endif
270270
@@ -288,7 +288,7 @@ static int X509StoreVerifyCert(WOLFSSL_X509_STORE_CTX* ctx)
288288 }
289289 SetupStoreCtxError (ctx , ret );
290290 #if defined(OPENSSL_ALL ) || defined(WOLFSSL_QT )
291- if (ctx -> store && ctx -> store -> verify_cb )
291+ if (ctx -> store -> verify_cb )
292292 ret = ctx -> store -> verify_cb (ret >= 0 ? 1 : 0 ,
293293 ctx ) == 1 ? 0 : -1 ;
294294 #endif
@@ -1754,7 +1754,7 @@ WOLF_STACK_OF(WOLFSSL_X509_OBJECT)* wolfSSL_X509_STORE_get0_objects(
17541754 * simplify cleanup logic handling cert merging above */
17551755 for (i = 0 ; i < wolfSSL_sk_X509_num (cert_stack ); i ++ ) {
17561756 x509 = (WOLFSSL_X509 * )wolfSSL_sk_value (cert_stack , i );
1757- obj = wolfSSL_X509_OBJECT_new ();
1757+ obj = wolfSSL_X509_OBJECT_new ();
17581758 if (obj == NULL ) {
17591759 WOLFSSL_MSG ("wolfSSL_X509_OBJECT_new error" );
17601760 goto err_cleanup ;
@@ -1766,10 +1766,9 @@ WOLF_STACK_OF(WOLFSSL_X509_OBJECT)* wolfSSL_X509_STORE_get0_objects(
17661766 }
17671767 obj -> type = WOLFSSL_X509_LU_X509 ;
17681768 obj -> data .x509 = x509 ;
1769- x509 = NULL ;
17701769 }
17711770
1772- while (wolfSSL_sk_X509_num (cert_stack ) > 0 ) {
1771+ while (wolfSSL_sk_X509_num (cert_stack ) > 0 ) {
17731772 wolfSSL_sk_X509_pop (cert_stack );
17741773 }
17751774#endif
@@ -1799,7 +1798,7 @@ WOLF_STACK_OF(WOLFSSL_X509_OBJECT)* wolfSSL_X509_STORE_get0_objects(
17991798 if (ret != NULL )
18001799 X509StoreFreeObjList (store , ret );
18011800 if (cert_stack != NULL ) {
1802- while (store -> numAdded > 0 ) {
1801+ while (store -> numAdded > 0 ) {
18031802 wolfSSL_sk_X509_pop (cert_stack );
18041803 store -> numAdded -- ;
18051804 }
0 commit comments