From 8a6d7ff9a55bb4471143b137a7804daf72b73275 Mon Sep 17 00:00:00 2001 From: Reda Chouk Date: Fri, 23 Aug 2024 21:31:55 +0200 Subject: [PATCH] more clang-tidy edits --- tests/api.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 6e5c93e04..b92073852 100644 --- a/tests/api.c +++ b/tests/api.c @@ -81244,7 +81244,10 @@ static int test_multiple_alerts_EAGAIN(void) * */ wolfSSL_shutdown(ssl_c); wolfSSL_shutdown(ssl_c); - size_of_last_packet = ssl_c->buffers.outputBuffer.length; + + if (ssl_c != NULL) { + size_of_last_packet = ssl_c->buffers.outputBuffer.length; + } wolfSSL_shutdown(ssl_c); /*