Skip to content

Commit 6fa5886

Browse files
Remove incorrectly added NULL check, add debug logging to RemoveCA.
1 parent a05aeb1 commit 6fa5886

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6100,6 +6100,8 @@ int RemoveCA(WOLFSSL_CERT_MANAGER* cm, byte* hash, byte type)
61006100
int ret = 0;
61016101
word32 row;
61026102

6103+
WOLFSSL_MSG("Removing a CA");
6104+
61036105
if (cm == NULL || hash == NULL) {
61046106
return ret;
61056107
}
@@ -6137,6 +6139,8 @@ int RemoveCA(WOLFSSL_CERT_MANAGER* cm, byte* hash, byte type)
61376139
}
61386140
wc_UnLockMutex(&cm->caLock);
61396141

6142+
WOLFSSL_LEAVE("RemoveCA", ret);
6143+
61406144
return ret;
61416145
}
61426146

src/x509_str.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,6 @@ int wolfSSL_X509_verify_cert(WOLFSSL_X509_STORE_CTX* ctx)
431431
}
432432

433433
certs = ctx->store->certs;
434-
if (certs == NULL) {
435-
return WOLFSSL_FATAL_ERROR;
436-
}
437434

438435
if (ctx->setTrustedSk != NULL) {
439436
certs = ctx->setTrustedSk;

0 commit comments

Comments
 (0)