From 8a4b72463f0e7d9cff477c572fbd2c63b1ceb1b7 Mon Sep 17 00:00:00 2001 From: t00416110 Date: Tue, 22 Jan 2019 15:45:34 +0800 Subject: [PATCH] ws: fix coredump of lws_create_context Signed-off-by: t00416110 --- lib/core/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/context.c b/lib/core/context.c index 094e43aa7..fe9ec3e32 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -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