Fix missing return statement ssl_server2 idling

Also, introduce MBEDTLS_EINTR locally in net_sockets.c
for the platform-dependent return code macro used by
the `select` call to indicate that the poll was interrupted
by a signal handler: On Unix, the corresponding macro is EINTR,
while on Windows, it's WSAEINTR.
This commit is contained in:
Hanno Becker 2018-03-15 15:49:24 +00:00
parent 80e06d77d9
commit ef52796537
3 changed files with 7 additions and 8 deletions

View file

@ -462,7 +462,7 @@ int idle( mbedtls_net_context *fd,
poll_type = MBEDTLS_NET_POLL_READ;
#if !defined(MBEDTLS_TIMING_C)
else
return;
return( 0 );
#endif
while( 1 )