mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 23:34:13 +01:00
Fix missing check in example client
And a mis-indented check as well.
This commit is contained in:
parent
ee68cff813
commit
25781f90da
@ -1570,8 +1570,8 @@ int main( int argc, char *argv[] )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
if( ret == MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS )
|
if( ret == MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS )
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For event-driven IO, wait for socket to become available */
|
/* For event-driven IO, wait for socket to become available */
|
||||||
@ -1674,6 +1674,11 @@ int main( int argc, char *argv[] )
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
|
if( ret == MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS )
|
||||||
|
continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* For event-driven IO, wait for socket to become available */
|
/* For event-driven IO, wait for socket to become available */
|
||||||
if( opt.event == 1 /* level triggered IO */ )
|
if( opt.event == 1 /* level triggered IO */ )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user