Don't print uninitialised buffer in ssl_mail_client

This commit is contained in:
Manuel Pégourié-Gonnard 2014-10-23 15:20:19 +02:00
parent 0b0b522932
commit 982eda385f
2 changed files with 3 additions and 0 deletions

View file

@ -14,6 +14,7 @@ Bugfix
with non-blocking I/O.
* x509_crt_parse() did not increase total_failed on PEM error
* Fix compiler warnings on iOS (found by Sander Niemeijer).
* Don't print uninitialised buffer in ssl_mail_client (found by Marc Abel).
Changes
* X.509 certificates with more than one AttributeTypeAndValue per

View file

@ -375,6 +375,8 @@ int main( int argc, char *argv[] )
memset( &rsa, 0, sizeof( rsa_context ) );
memset( &ssl, 0, sizeof( ssl_context ) );
memset( buf, 0, sizeof( buf ) );
if( argc == 0 )
{
usage: