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