diff --git a/lib/service.c b/lib/service.c index 5ebdfc7b2..e04358e6a 100644 --- a/lib/service.c +++ b/lib/service.c @@ -1098,7 +1098,7 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, int t lws_close_free_wsi(wsi, LWS_CLOSE_STATUS_NOSTATUS); - ah = ah->next; + ah = pt->ah_list; } #ifdef LWS_WITH_CGI