1
0
Fork 0
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:
dev31337 2020-05-24 17:14:51 +01:00 committed by Andy Green
parent 7d73c3341c
commit 10d59608c0
2 changed files with 2 additions and 1 deletions

View file

@ -327,7 +327,7 @@ set(PACKAGE "libwebsockets")
set(CPACK_PACKAGE_NAME "${PACKAGE}")
set(CPACK_PACKAGE_VERSION_MAJOR "4")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "11")
set(CPACK_PACKAGE_VERSION_PATCH "12")
set(CPACK_PACKAGE_RELEASE 1)
set(CPACK_GENERATOR "RPM")
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")

View file

@ -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;
}
}