mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
PEER_LIMITS: make sure to close socketfd on deny
This commit is contained in:
parent
ef787e578c
commit
4f3e012cdd
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue