mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
fix lws_lookup off by one
Signed-off-by: nononame <nononame@le-huit.fr>
This commit is contained in:
parent
ed451d5cbf
commit
f162492cf3
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ insert_wsi_socket_into_fds(struct libwebsocket_context *context,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wsi->sock > context->max_fds) {
|
if (wsi->sock >= context->max_fds) {
|
||||||
lwsl_err("Socket fd %d is too high (%d)\n",
|
lwsl_err("Socket fd %d is too high (%d)\n",
|
||||||
wsi->sock, context->max_fds);
|
wsi->sock, context->max_fds);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue