Skip to content

Commit 688b94c

Browse files
fix typo and missing brackets
1 parent 7d54919 commit 688b94c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37186,7 +37186,7 @@ PKCS7* wolfSSL_SMIME_read_PKCS7(WOLFSSL_BIO* in,
3718637186
XFREE(section, NULL, DYNAMIC_TYPE_PKCS7);
3718737187
if (canonSection != NULL)
3718837188
XFREE(canonSection, NULL, DYNAMIC_TYPE_PKCS7);
37189-
if (cannonLine != NULL)
37189+
if (canonLine != NULL)
3719037190
XFREE(canonLine, NULL, DYNAMIC_TYPE_PKCS7);
3719137191
if (bcont) {
3719237192
wolfSSL_BIO_free(*bcont);

src/x509.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,15 +1548,17 @@ int wolfSSL_X509V3_EXT_print(WOLFSSL_BIO *out, WOLFSSL_X509_EXTENSION *ext,
15481548
if (sk->next) {
15491549
if ((valLen = XSNPRINTF(val, len, "%*s%s,",
15501550
indent, "", str->strData))
1551-
>= len)
1551+
>= len) {
15521552
XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER);
15531553
return rc;
1554+
}
15541555
} else {
15551556
if ((valLen = XSNPRINTF(val, len, "%*s%s",
15561557
indent, "", str->strData))
1557-
>= len)
1558+
>= len) {
15581559
XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER);
15591560
return rc;
1561+
}
15601562
}
15611563
if ((tmpLen + valLen) >= tmpSz) {
15621564
XFREE(val, NULL, DYNAMIC_TYPE_TMP_BUFFER);

0 commit comments

Comments
 (0)