Merge pull request #5620 from JacobBarthelmeh/Certs

fix for return value of x509 print
This commit is contained in:
John Safranek
2022-09-25 19:32:52 -07:00
committed by GitHub

View File

@ -5795,7 +5795,11 @@ static int X509PrintExtensions(WOLFSSL_BIO* bio, WOLFSSL_X509* x509, int indent)
ret = WOLFSSL_FAILURE;
break;
}
ret = wolfSSL_BIO_write(bio, scratch, scratchLen);
if (wolfSSL_BIO_write(bio, scratch, scratchLen) <= 0) {
ret = WOLFSSL_FAILURE;
break;
}
}
}
}