1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ws: fix coredump of lws_create_context

Signed-off-by: t00416110 <tanyifeng1@huawei.com>
This commit is contained in:
t00416110 2019-01-22 15:45:34 +08:00 committed by Andy Green
parent 8587e164f0
commit 8a4b72463f

View file

@ -363,7 +363,7 @@ lwsl_info("context created\n");
#if LWS_MAX_SMP > 1
/* 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->fd_limit_per_thread;
#endif