From 8d6ee0b26a9342bbd5733d689ee3186b37259008 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 26 Oct 2022 10:48:51 -0600 Subject: [PATCH] minor warning fixes --- src/tls.c | 2 +- tests/api.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tls.c b/src/tls.c index a5eecd526..40a4408df 100644 --- a/src/tls.c +++ b/src/tls.c @@ -1648,7 +1648,7 @@ int ALPN_Select(WOLFSSL *ssl) if (ssl->alpnSelect(ssl, &sel, &sel_len, ssl->alpn_peer_requested, ssl->alpn_peer_requested_length, ssl->alpnSelectArg) == 0) { - WOLFSSL_MSG_EX("ALPN protocol match"); + WOLFSSL_MSG("ALPN protocol match"); } else { sel = NULL; diff --git a/tests/api.c b/tests/api.c index 8f23065d2..fb7d1a90d 100644 --- a/tests/api.c +++ b/tests/api.c @@ -48476,6 +48476,7 @@ static int test_wolfSSL_d2i_OCSP_CERTID(void) /* If the cert ID is not NULL the function will just copy the data to it. */ certId = (WOLFSSL_OCSP_CERTID*)XMALLOC(sizeof(*certId), NULL, DYNAMIC_TYPE_TMP_BUFFER); + AssertNotNull(certId); XMEMSET(certId, 0, sizeof(*certId)); /* Reset rawCertIdPtr since it was push forward in the previous call. */