1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

fix bug in ssl_mail_client

This commit is contained in:
Manuel Pégourié-Gonnard
2015-04-30 12:50:22 +02:00
parent f52248a959
commit fa950c9480
2 changed files with 4 additions and 1 deletions

View File

@ -722,7 +722,7 @@ int main( int argc, char *argv[] )
polarssl_printf( " > Write username to server: %s", opt.user_name );
fflush( stdout );
n = sizeof( buf );
n = sizeof( base );
ret = base64_encode( base, &n, (const unsigned char *) opt.user_name,
strlen( opt.user_name ) );
@ -743,6 +743,7 @@ int main( int argc, char *argv[] )
polarssl_printf( " > Write password to server: %s", opt.user_pwd );
fflush( stdout );
n = sizeof( base );
ret = base64_encode( base, &n, (const unsigned char *) opt.user_pwd,
strlen( opt.user_pwd ) );