projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MBEDTLS] Update to version 2.7.18. CORE-17252
[reactos.git]
/
dll
/
3rdparty
/
mbedtls
/
pem.c
diff --git
a/dll/3rdparty/mbedtls/pem.c
b/dll/3rdparty/mbedtls/pem.c
index
9eff10e
..
8c07048
100644
(file)
--- a/
dll/3rdparty/mbedtls/pem.c
+++ b/
dll/3rdparty/mbedtls/pem.c
@@
-510,6
+510,9
@@
int mbedtls_pem_write_buffer( const char *header, const char *footer,
*p++ = '\0';
*olen = p - buf;
+ /* Clean any remaining data previously written to the buffer */
+ memset( buf + *olen, 0, buf_len - *olen );
+
mbedtls_free( encode_buf );
return( 0 );
}