mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
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:
parent
80e06d77d9
commit
ef52796537
3 changed files with 7 additions and 8 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -863,7 +863,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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue