aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/network.c b/src/util/network.c
index 9b96436db0..38d9ccb72e 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -56,7 +56,7 @@ struct GNUNET_NETWORK_FDSet
{
/**
- * Maximum number of any socket socket descriptor in the set
+ * Maximum number of any socket socket descriptor in the set (plus one)
*/
int nsds;
@@ -1007,7 +1007,7 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds,
GNUNET_break (0);
}
#ifndef MINGW
- return select (nfds + 1,
+ return select (nfds,
(rfds != NULL) ? &rfds->sds : NULL,
(wfds != NULL) ? &wfds->sds : NULL,
(efds != NULL) ? &efds->sds : NULL,