common: if SSL_shutdown fails, only call one more time

master
Jay Sorg 7 years ago committed by jsorg71
parent 75fd3fcf89
commit 2c96908ea5

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

Loading…
Cancel
Save