fix typo and missing brackets

This commit is contained in:
JacobBarthelmeh
2023-10-27 16:11:18 -06:00
parent 7d5491994e
commit 688b94cad2
2 changed files with 5 additions and 3 deletions

View File

@@ -37186,7 +37186,7 @@ error:
XFREE(section, NULL, DYNAMIC_TYPE_PKCS7); XFREE(section, NULL, DYNAMIC_TYPE_PKCS7);
if (canonSection != NULL) if (canonSection != NULL)
XFREE(canonSection, NULL, DYNAMIC_TYPE_PKCS7); XFREE(canonSection, NULL, DYNAMIC_TYPE_PKCS7);
if (cannonLine != NULL) if (canonLine != NULL)
XFREE(canonLine, NULL, DYNAMIC_TYPE_PKCS7); XFREE(canonLine, NULL, DYNAMIC_TYPE_PKCS7);
if (bcont) { if (bcont) {
wolfSSL_BIO_free(*bcont); wolfSSL_BIO_free(*bcont);

View File

@@ -1548,16 +1548,18 @@ int wolfSSL_X509V3_EXT_print(WOLFSSL_BIO *out, WOLFSSL_X509_EXTENSION *ext,
if (sk->next) { if (sk->next) {
if ((valLen = XSNPRINTF(val, len, "%*s%s,", if ((valLen = XSNPRINTF(val, len, "%*s%s,",
indent, "", str->strData)) indent, "", str->strData))
>= len) >= len) {
XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER); XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER);
return rc; return rc;
}
} else { } else {
if ((valLen = XSNPRINTF(val, len, "%*s%s", if ((valLen = XSNPRINTF(val, len, "%*s%s",
indent, "", str->strData)) indent, "", str->strData))
>= len) >= len) {
XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER); XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER);
return rc; return rc;
} }
}
if ((tmpLen + valLen) >= tmpSz) { if ((tmpLen + valLen) >= tmpSz) {
XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER); XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER);
return rc; return rc;