net_sockets: Fix typo in net_would_block()

Fixes #528
This commit is contained in:
Jaeden Amero 2019-05-29 09:38:29 +01:00 committed by Jaeden Amero
parent d81c11b8ab
commit 88a6e89fb6
2 changed files with 2 additions and 1 deletions

View file

@ -284,7 +284,7 @@ static int net_would_block( const mbedtls_net_context *ctx )
int err = errno;
/*
* Never return 'WOULD BLOCK' on a non-blocking socket
* Never return 'WOULD BLOCK' on a blocking socket
*/
if( ( fcntl( ctx->fd, F_GETFL ) & O_NONBLOCK ) != O_NONBLOCK )
{