From 5a6764f218993f27f5a557e88ae18db44c8e4021 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 29 Dec 2017 13:30:37 +0800 Subject: [PATCH] after excessive ah hold detect restart scan ah is potentially freed after the close --- lib/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/service.c b/lib/service.c index e470ed64..a44e2cb3 100644 --- a/lib/service.c +++ b/lib/service.c @@ -1195,7 +1195,7 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, lws_close_free_wsi(wsi, LWS_CLOSE_STATUS_NOSTATUS); - ah = ah->next; + ah = pt->ah_list; } #ifdef LWS_WITH_CGI