1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib/core-net/client
Bing Zhao ff1b8ed0c9 tls: fix inbalanced tls restrict borrow/return calls
lws_tls_restrict_borrow() returns error when tls restriction limit is
reached. However lws_ssl_close() still calls lws_tls_restrict_return()
to decrease simultaneous_ssl. Thus LWS accepts more than allowed ssl
links, making simultaneous_ssl_restriction useless.

Fix it by tracking lws_tls_restrict_borrow() return value and only
calling lws_tls_restrict_return() if lws_tls_restrict_borrow() is
successful.
2021-07-07 08:47:37 +01:00
..
client.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
conmon.c cygwin: include in unix type socket init 2021-06-17 14:19:40 +01:00
connect.c tls: fix inbalanced tls restrict borrow/return calls 2021-07-07 08:47:37 +01:00
connect2.c dns: handle EAI_NONAME as fatal 2021-07-07 08:43:56 +01:00
connect3.c win32: client: just do WIN32 check 2021-06-20 07:21:31 +01:00
connect4.c lws_metrics 2021-03-08 21:47:28 +00:00
sort-dns.c cygwin: include in unix type socket init 2021-06-17 14:19:40 +01:00