commit | 9a6b442cee5f080f05e872b4406fbb2cb444797e | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Jul 21 13:42:54 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Aug 14 11:34:34 2014 +0200 |
tree | 6e5664b39fac4202b05931dfe729d8d886fdc447 | |
parent | a04fa4fa040e02d2588bb82f75b19ba94a10d26e [diff] [blame] |
Fix non-blocking sockets in net_accept()
diff --git a/library/net.c b/library/net.c index ad4b892..de1ec75 100644 --- a/library/net.c +++ b/library/net.c
@@ -434,7 +434,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 );