fix for return value of x509 print

This commit is contained in:
Jacob Barthelmeh
2022-09-22 14:09:50 -06:00
parent 7ca9e4f084
commit 39815a53fa

View File

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