Fix wolfSSL_SMIME_write_PKCS7 not removing NULL characters between sections.

This commit is contained in:
Kareem
2023-07-21 11:08:15 -07:00
parent 1daaabf38a
commit 4bb907522b

View File

@ -36134,7 +36134,7 @@ static int wolfSSL_BIO_to_MIME_crlf(WOLFSSL_BIO* in, WOLFSSL_BIO* out)
} }
/* remove trailing null */ /* remove trailing null */
if (canonLine[canonLineLen] == '\0') { if (canonLineLen >= 1 && canonLine[canonLineLen-1] == '\0') {
canonLineLen--; canonLineLen--;
} }