Fix net_accept() regarding non-blocking sockets

This commit is contained in:
Manuel Pégourié-Gonnard 2014-10-23 15:23:48 +02:00
parent 982eda385f
commit 3fdfcedebb
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ Bugfix
* x509_crt_parse() did not increase total_failed on PEM error
* Fix compiler warnings on iOS (found by Sander Niemeijer).
* 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
* X.509 certificates with more than one AttributeTypeAndValue per

View file

@ -282,7 +282,7 @@ int net_accept( int bind_fd, int *client_fd, void *client_ip )
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_ACCEPT_FAILED );