Add TLS_WANT on tls_close too. - geomyidae - a small C-based gopherd (mirror)
(HTM) git clone git://git.codemadness.org/geomyidae
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 37b32150292c712dd823fdf810e7ee766a2358a9
(DIR) parent 6aaceedcc36a36f52cfb27bfdbcfde2ba71381da
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 12 Aug 2023 19:21:36 +0200
Add TLS_WANT on tls_close too.
Diffstat:
M main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/main.c b/main.c
@@ -1164,7 +1164,7 @@ read_selector_again:
if (tlsclientreader) {
wlen = TLS_WANT_POLLIN;
while (wlen == TLS_WANT_POLLIN \
- wlen == TLS_WANT_POLLOUT) {
+ || wlen == TLS_WANT_POLLOUT) {
wlen = tls_close(tlsclientctx);
}
tls_free(tlsclientctx);