mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix wolfSSL_SMIME_write_PKCS7 not removing NULL characters between sections.
This commit is contained in:
@ -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--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user