From d5268d8bb5beec4adf6b9c7989f6a0b736f932ff Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Fri, 16 Aug 2024 10:46:31 -0700 Subject: [PATCH] Update NULL check to be consistent with other checks --- src/tls13.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls13.c b/src/tls13.c index f20f43255..64c8650b9 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -8511,7 +8511,7 @@ static int SendTls13Certificate(WOLFSSL* ssl) listSz = 0; } else { - if (!ssl->buffers.certificate || !ssl->buffers.certificate) { + if (!ssl->buffers.certificate || !ssl->buffers.certificate->buffer) { WOLFSSL_MSG("Send Cert missing certificate buffer"); return NO_CERT_ERROR; }