Skip to content

Commit

Permalink
net_sockets: Fix typo in net_would_block()
Browse files Browse the repository at this point in the history
  • Loading branch information
Patater committed Jun 20, 2019
1 parent d81c11b commit 88a6e89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Bugfix
* Fix multiple X.509 functions previously returning ASN.1 low-level error
codes to always wrap these codes into X.509 high level error codes before
returning. Fixes #2431.
* Fix typo in net_would_block(). Fixes #528 reported by github-monoculture.

Changes
* Return from various debugging routines immediately if the
Expand Down
2 changes: 1 addition & 1 deletion library/net_sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 88a6e89

Please sign in to comment.