mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-24 20:41:05 +00:00
Fix net_accept() regarding non-blocking sockets
This commit is contained in:
parent
982eda385f
commit
3fdfcedebb
|
@ -15,6 +15,7 @@ Bugfix
|
||||||
* x509_crt_parse() did not increase total_failed on PEM error
|
* x509_crt_parse() did not increase total_failed on PEM error
|
||||||
* Fix compiler warnings on iOS (found by Sander Niemeijer).
|
* Fix compiler warnings on iOS (found by Sander Niemeijer).
|
||||||
* Don't print uninitialised buffer in ssl_mail_client (found by Marc Abel).
|
* Don't print uninitialised buffer in ssl_mail_client (found by Marc Abel).
|
||||||
|
* Fix net_accept() regarding non-blocking sockets (found by Luca Pesce).
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* X.509 certificates with more than one AttributeTypeAndValue per
|
* X.509 certificates with more than one AttributeTypeAndValue per
|
||||||
|
|
|
@ -282,7 +282,7 @@ int net_accept( int bind_fd, int *client_fd, void *client_ip )
|
||||||
|
|
||||||
if( *client_fd < 0 )
|
if( *client_fd < 0 )
|
||||||
{
|
{
|
||||||
if( net_would_block( *client_fd ) != 0 )
|
if( net_would_block( bind_fd ) != 0 )
|
||||||
return( POLARSSL_ERR_NET_WANT_READ );
|
return( POLARSSL_ERR_NET_WANT_READ );
|
||||||
|
|
||||||
return( POLARSSL_ERR_NET_ACCEPT_FAILED );
|
return( POLARSSL_ERR_NET_ACCEPT_FAILED );
|
||||||
|
|
Loading…
Reference in a new issue