diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-06-11 09:40:49 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-06-11 09:42:44 +0200 |
commit | e779322f0529011cd23ad47b0f25a951e87714de (patch) | |
tree | f9f799f0ea49c1609b65649fd17066017d283971 /common/rfb/CSecurityTLS.cxx | |
parent | 14d21d7b445107873166b528c66881bf736285f8 (diff) | |
download | tigervnc-e779322f0529011cd23ad47b0f25a951e87714de.tar.gz tigervnc-e779322f0529011cd23ad47b0f25a951e87714de.zip |
Don't wait for TLS close response
Our current architecture doesn't support waiting for a response here, so
don't even try or we'll just get an error.
Diffstat (limited to 'common/rfb/CSecurityTLS.cxx')
-rw-r--r-- | common/rfb/CSecurityTLS.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx index d33a76e2..5337d8d6 100644 --- a/common/rfb/CSecurityTLS.cxx +++ b/common/rfb/CSecurityTLS.cxx @@ -104,7 +104,9 @@ void CSecurityTLS::shutdown() { if (session) { int ret; - ret = gnutls_bye(session, GNUTLS_SHUT_RDWR); + // FIXME: We can't currently wait for the response, so we only send + // our close and hope for the best + ret = gnutls_bye(session, GNUTLS_SHUT_WR); if ((ret != GNUTLS_E_SUCCESS) && (ret != GNUTLS_E_INVALID_SESSION)) vlog.error("TLS shutdown failed: %s", gnutls_strerror(ret)); } |