Skip to content

Commit

Permalink
Modify tests to make analyzers happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtonWilley committed Aug 14, 2024
1 parent 15abea7 commit dcf3af5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -77292,10 +77292,10 @@ static int test_wolfSSL_set_SSL_CTX(void)
ExpectIntEQ(XMEMCMP(ssl->sessionCtx, session_id2, 4), 0);
#endif
#ifdef WOLFSSL_COPY_CERT
if (ctx2->certificate != NULL) {
if (ctx2 != NULL && ctx2->certificate != NULL) {
ExpectFalse(ssl->buffers.certificate == ctx2->certificate);
}
if (ctx2->certChain != NULL) {
if (ctx2 != NULL && ctx2->certChain != NULL) {
ExpectFalse(ssl->buffers.certChain == ctx2->certChain);
}
#else
Expand All @@ -77320,10 +77320,10 @@ static int test_wolfSSL_set_SSL_CTX(void)
/* MUST change */
#ifdef WOLFSSL_INT_H
#ifdef WOLFSSL_COPY_CERT
if (ctx1->certificate != NULL) {
if (ctx1 != NULL && ctx1->certificate != NULL) {
ExpectFalse(ssl->buffers.certificate == ctx1->certificate);
}
if (ctx1->certChain != NULL) {
if (ctx1 != NULL && ctx1->certChain != NULL) {
ExpectFalse(ssl->buffers.certChain == ctx1->certChain);
}
#else
Expand Down

0 comments on commit dcf3af5

Please sign in to comment.