Skip to content
Snippets Groups Projects
Commit b59fb922 authored by t00416110's avatar t00416110 Committed by Andy Green
Browse files

ws: fix coredump of lws_create_context


Signed-off-by: default avatart00416110 <tanyifeng1@huawei.com>
parent f10d5e07
Branches
No related tags found
No related merge requests found
...@@ -1132,7 +1132,7 @@ lws_create_context(const struct lws_context_creation_info *info) ...@@ -1132,7 +1132,7 @@ lws_create_context(const struct lws_context_creation_info *info)
#if LWS_MAX_SMP > 1 #if LWS_MAX_SMP > 1
/* each thread serves his own chunk of fds */ /* each thread serves his own chunk of fds */
for (n = 1; n < (int)info->count_threads; n++) for (n = 1; n < (int)context->count_threads; n++)
context->pt[n].fds = context->pt[n - 1].fds + context->pt[n].fds = context->pt[n - 1].fds +
context->fd_limit_per_thread; context->fd_limit_per_thread;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment