commit | 3fdfcedebb222643935e06e6e4712c481c3282ac | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Oct 23 15:23:48 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Oct 23 15:23:48 2014 +0200 |
tree | d40e80190ca90c2d0d87e2630af21525f2b3cf80 | |
parent | 982eda385fd87ef9595937fc999142905a19ee22 [diff] [blame] |
Fix net_accept() regarding non-blocking sockets
diff --git a/library/net.c b/library/net.c index 899cf37..bfe08fb 100644 --- a/library/net.c +++ b/library/net.c
@@ -282,7 +282,7 @@ 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 );