From b59fb9223b5b4c1b7e7cb5be3a32ad517a0c1b7d Mon Sep 17 00:00:00 2001
From: t00416110 <tanyifeng1@huawei.com>
Date: Tue, 22 Jan 2019 15:45:34 +0800
Subject: [PATCH] ws: fix coredump of lws_create_context

Signed-off-by: t00416110 <tanyifeng1@huawei.com>
---
 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 94b2d863..4bd2b05a 100644
--- a/lib/core/context.c
+++ b/lib/core/context.c
@@ -1132,7 +1132,7 @@ lws_create_context(const struct lws_context_creation_info *info)
 
 #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
-- 
GitLab