Do TLS_WANT on tls_close too. - geomyidae - a small C-based gopherd (mirror) | |
git clone git://git.codemadness.org/geomyidae | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 6aaceedcc36a36f52cfb27bfdbcfde2ba71381da | |
parent f827151059463740fbdd59834ce0620b81d80d61 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sat, 12 Aug 2023 19:20:56 +0200 | |
Do TLS_WANT on tls_close too. | |
Diffstat: | |
M main.c | 6 +++++- | |
1 file changed, 5 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/main.c b/main.c | |
@@ -1162,7 +1162,11 @@ read_selector_again: | |
} while (shuflen > 0); | |
if (tlsclientreader) { | |
- tls_close(tlsclientctx); | |
+ wlen = TLS_WANT_POLLIN; | |
+ while (wlen == TLS_WANT_POLLIN… | |
+ wlen == TLS_WA… | |
+ wlen = tls_close(tlscl… | |
+ } | |
tls_free(tlsclientctx); | |
} | |