geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit 6aaceedcc36a36f52cfb27bfdbcfde2ba71381da
parent f827151059463740fbdd59834ce0620b81d80d61
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 12 Aug 2023 19:20:56 +0200

Do TLS_WANT on tls_close too.

Diffstat:
Mmain.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_WANT_POLLOUT) { + wlen = tls_close(tlsclientctx); + } tls_free(tlsclientctx); }