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

Move ssl_set_max_fragment_len to work on conf

This commit is contained in:
Manuel Pégourié-Gonnard
2015-05-05 17:01:57 +01:00
parent 17eab2b65c
commit 6bf89d6ad9
4 changed files with 6 additions and 6 deletions

View File

@ -1543,7 +1543,7 @@ int main( int argc, char *argv[] )
#endif /* MBEDTLS_SSL_PROTO_DTLS */
#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
if( ( ret = mbedtls_ssl_set_max_frag_len( &ssl, opt.mfl_code ) ) != 0 )
if( ( ret = mbedtls_ssl_set_max_frag_len( &conf, opt.mfl_code ) ) != 0 )
{
mbedtls_printf( " failed\n ! mbedtls_ssl_set_max_frag_len returned %d\n\n", ret );
goto exit;