Update NULL check to be consistent with other checks

This commit is contained in:
Colton Willey
2024-08-16 10:46:31 -07:00
parent a09e3bb3e7
commit d5268d8bb5

View File

@ -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;
}