mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
TLS Stream: remove incorrect/obsolete INSIST()s from tls_do_bio()
With the changes to tls_try_handshake() made in 2846888c573fcc610cdf71bcdd5bb6f92ffaf499 there are some incorrect INSISTS() related to handshake handling which better to be removed.
This commit is contained in:
parent
696b2c8c89
commit
43e21d653f
@ -524,20 +524,15 @@ tls_do_bio(isc_nmsocket_t *sock, isc_region_t *received_data,
|
||||
hs_result != ISC_R_SUCCESS)
|
||||
{
|
||||
/*
|
||||
* The accept callback has been called
|
||||
* unsuccessfully. Let's try to shut
|
||||
* down the TLS connection gracefully.
|
||||
* The accept/connect callback has been
|
||||
* called unsuccessfully. Let's try to
|
||||
* shut down the TLS connection
|
||||
* gracefully.
|
||||
*/
|
||||
INSIST(SSL_is_init_finished(
|
||||
sock->tlsstream.tls) ==
|
||||
1);
|
||||
INSIST(!sock->client);
|
||||
finish = true;
|
||||
} else if (sock->tlsstream.state == TLS_IO &&
|
||||
hs_result == ISC_R_SUCCESS &&
|
||||
!sock->tlsstream.server)
|
||||
{
|
||||
INSIST(sock->client);
|
||||
}
|
||||
}
|
||||
} else if (send_data != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user