commit | f162492cf389d9680ecacfd951921607e0899679 | [log] [tgz] |
---|---|---|
author | nononame <nononame@le-huit.fr> | Sat Jan 11 13:12:34 2014 +0800 |
committer | Andy Green <andy.green@linaro.org> | Sat Jan 11 13:12:34 2014 +0800 |
tree | 28146ffe7738e70f33d494e9e6733c9eae7e627a | |
parent | ed451d5cbf1c46d889e800ff86b9e2e3c9de0d6e [diff] [blame] |
fix lws_lookup off by one Signed-off-by: nononame <nononame@le-huit.fr>
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 01dc58e..18b5009 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c
@@ -119,7 +119,7 @@ return 1; } - if (wsi->sock > context->max_fds) { + if (wsi->sock >= context->max_fds) { lwsl_err("Socket fd %d is too high (%d)\n", wsi->sock, context->max_fds); return 1;