Skip to content

Commit 8d17c0d

Browse files
Remove incorrectly added NULL check, add debug logging to RemoveCA.
1 parent bc187f7 commit 8d17c0d

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
@@ -6093,6 +6093,8 @@ int RemoveCA(WOLFSSL_CERT_MANAGER* cm, byte* hash, byte type)
60936093
int ret = 0;
60946094
word32 row;
60956095

6096+
WOLFSSL_MSG("Removing a CA");
6097+
60966098
if (cm == NULL || hash == NULL) {
60976099
return ret;
60986100
}
@@ -6130,6 +6132,8 @@ int RemoveCA(WOLFSSL_CERT_MANAGER* cm, byte* hash, byte type)
61306132
}
61316133
wc_UnLockMutex(&cm->caLock);
61326134

6135+
WOLFSSL_LEAVE("RemoveCA", ret);
6136+
61336137
return ret;
61346138
}
61356139

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)