mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
fix bug in ssl_mail_client
This commit is contained in:
parent
f52248a959
commit
fa950c9480
2 changed files with 4 additions and 1 deletions
|
|
@ -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 ) );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue