Skip to content

Commit 077b070

Browse files
CID 426427 remove duplicate null checks
1 parent 9af8716 commit 077b070

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/x509_str.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)