diff options
author | 2017-03-07 08:00:23 +0000 | |
---|---|---|
committer | 2017-03-07 08:00:23 +0000 | |
commit | 372b33252c9c9ed2cf8c1f9cdd761f38332efc25 (patch) | |
tree | 3bab952781c7022548e80d9b58041ef8fa43bd17 | |
parent | Since route_input is no longer part of the protosw struct it is possible to (diff) | |
download | wireguard-openbsd-372b33252c9c9ed2cf8c1f9cdd761f38332efc25.tar.xz wireguard-openbsd-372b33252c9c9ed2cf8c1f9cdd761f38332efc25.zip |
tls_close() can return TLS_WANT_POLLIN/TLS_WANT_POLLOUT, handle them
appropriately.
Ok jca@
-rw-r--r-- | usr.bin/ftp/fetch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index 625dcf3e2e7..e50390bb8ae 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.162 2017/03/02 09:29:53 sthen Exp $ */ +/* $OpenBSD: fetch.c,v 1.163 2017/03/07 08:00:23 sunil Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -1031,7 +1031,9 @@ improper: cleanup_url_get: #ifndef NOSSL if (tls != NULL) { - tls_close(tls); + do { + i = tls_close(tls); + } while (i == TLS_WANT_POLLIN || i == TLS_WANT_POLLOUT); tls_free(tls); } free(full_host); |