net_sockets: Fix typo in net_would_block()
Fixes #528
diff --git a/ChangeLog b/ChangeLog
index 8c1d03c..e2561c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -46,6 +46,7 @@
* 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
diff --git a/library/net_sockets.c b/library/net_sockets.c
index 816b130..5d538bf 100644
--- a/library/net_sockets.c
+++ b/library/net_sockets.c
@@ -284,7 +284,7 @@
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 )
{