summaryrefslogtreecommitdiffstats
path: root/common/ssl_calls.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2017-05-09 18:00:12 -0700
committerjsorg71 <jay.sorg@gmail.com>2017-05-10 14:56:20 -0700
commit2c96908ea500880c71d3593dd2b2b5b5275bdbf5 (patch)
tree74c9981b76853f4a19622162e8a08391e1d5dc88 /common/ssl_calls.c
parent75fd3fcf89df169d25ce7867b82fb0a13eb72644 (diff)
downloadxrdp-proprietary-2c96908ea500880c71d3593dd2b2b5b5275bdbf5.tar.gz
xrdp-proprietary-2c96908ea500880c71d3593dd2b2b5b5275bdbf5.zip
common: if SSL_shutdown fails, only call one more time
Diffstat (limited to 'common/ssl_calls.c')
-rw-r--r--common/ssl_calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ssl_calls.c b/common/ssl_calls.c
index 72e2184e..0362f668 100644
--- a/common/ssl_calls.c
+++ b/common/ssl_calls.c
@@ -678,7 +678,7 @@ ssl_tls_disconnect(struct ssl_tls *self)
return 0;
}
status = SSL_shutdown(self->ssl);
- while (status != 1)
+ if (status != 1)
{
status = SSL_shutdown(self->ssl);
if (status <= 0)