Skip to content

Commit

Permalink
infer: fix dead store, and uninitialized value errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
philljj committed Oct 15, 2024
1 parent 0f8b4db commit e3c2c65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20411,7 +20411,6 @@ WOLFSSL_CTX* wolfSSL_set_SSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
}

ssl->buffers.weOwnCert = 1;
ret = WOLFSSL_SUCCESS;
}
if (ctx->certChain != NULL) {
if (ssl->buffers.certChain != NULL) {
Expand All @@ -20425,7 +20424,6 @@ WOLFSSL_CTX* wolfSSL_set_SSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
}

ssl->buffers.weOwnCertChain = 1;
ret = WOLFSSL_SUCCESS;
}
#else
/* ctx owns certificate, certChain and key */
Expand Down
2 changes: 2 additions & 0 deletions src/tls13.c
Original file line number Diff line number Diff line change
Expand Up @@ -8568,6 +8568,8 @@ static int SendTls13Certificate(WOLFSSL* ssl)
WOLFSSL_START(WC_FUNC_CERTIFICATE_SEND);
WOLFSSL_ENTER("SendTls13Certificate");

XMEMSET(extSz, 0, sizeof(extSz));

ssl->options.buildingMsg = 1;

#ifdef WOLFSSL_POST_HANDSHAKE_AUTH
Expand Down
2 changes: 1 addition & 1 deletion tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -5031,7 +5031,7 @@ static int test_wolfSSL_CTX_use_certificate_chain_buffer_format(void)
WOLFSSL* ssl = NULL;
const char* cert = "./certs/server-cert.pem";
unsigned char* buf = NULL;
size_t len;
size_t len = 0;

ExpectIntEQ(load_file(cert, &buf, &len), 0);

Expand Down

0 comments on commit e3c2c65

Please sign in to comment.