common: if SSL_shutdown fails, only call one more time

This commit is contained in:
Jay Sorg 2017-05-09 18:00:12 -07:00 committed by jsorg71
parent 75fd3fcf89
commit 2c96908ea5
1 changed files with 1 additions and 1 deletions

View File

@ -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)