diff --git a/lib/core-net/adopt.c b/lib/core-net/adopt.c index d9f87a7f5..0c6a69df8 100644 --- a/lib/core-net/adopt.c +++ b/lib/core-net/adopt.c @@ -343,6 +343,7 @@ lws_adopt_descriptor_vhost_via_info(const lws_adopt_desc_t *info) lws_stats_bump(&info->vh->context->pt[0], LWSSTATS_C_PEER_LIMIT_WSI_DENIED, 1); + compatible_close(info->fd.sockfd); return NULL; } }