fix bug in ssl_mail_client
This commit is contained in:
parent
f52248a959
commit
fa950c9480
2 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,8 @@ Features
|
||||||
errors on use of deprecated functions.
|
errors on use of deprecated functions.
|
||||||
|
|
||||||
Bugfix
|
Bugfix
|
||||||
|
* Fix bug in ssl_mail_client when password is longer that username (found
|
||||||
|
by Bruno Pape).
|
||||||
* Fix undefined behaviour (memcmp( NULL, NULL, 0 );) in X.509 modules
|
* Fix undefined behaviour (memcmp( NULL, NULL, 0 );) in X.509 modules
|
||||||
(detected by Clang's 3.6 UBSan).
|
(detected by Clang's 3.6 UBSan).
|
||||||
* mpi_size() and mpi_msb() would segfault when called on an mpi that is
|
* mpi_size() and mpi_msb() would segfault when called on an mpi that is
|
||||||
|
|
|
@ -722,7 +722,7 @@ int main( int argc, char *argv[] )
|
||||||
polarssl_printf( " > Write username to server: %s", opt.user_name );
|
polarssl_printf( " > Write username to server: %s", opt.user_name );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
|
|
||||||
n = sizeof( buf );
|
n = sizeof( base );
|
||||||
ret = base64_encode( base, &n, (const unsigned char *) opt.user_name,
|
ret = base64_encode( base, &n, (const unsigned char *) opt.user_name,
|
||||||
strlen( 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 );
|
polarssl_printf( " > Write password to server: %s", opt.user_pwd );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
|
|
||||||
|
n = sizeof( base );
|
||||||
ret = base64_encode( base, &n, (const unsigned char *) opt.user_pwd,
|
ret = base64_encode( base, &n, (const unsigned char *) opt.user_pwd,
|
||||||
strlen( opt.user_pwd ) );
|
strlen( opt.user_pwd ) );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue