mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 06:40:00 -04:00
Merge branch 'artem-tls-check-for-recv_cb-v9-18' into 'v9_18'
TLS: check for sock->recv_cb when handling received data See merge request isc-projects/bind9!7159
This commit is contained in:
commit
fbec0ece73
1 changed files with 12 additions and 0 deletions
|
|
@ -519,6 +519,18 @@ tls_do_bio(isc_nmsocket_t *sock, isc_region_t *received_data,
|
|||
if (sock->statichandle == NULL) {
|
||||
finish = true;
|
||||
break;
|
||||
} else if (sock->recv_cb == NULL) {
|
||||
/*
|
||||
* The 'sock->recv_cb' might have been
|
||||
* nullified during the call to
|
||||
* 'sock->recv_cb'. That could happen,
|
||||
* indirectly when wrapping up.
|
||||
*
|
||||
* In this case, let's close the TLS
|
||||
* connection.
|
||||
*/
|
||||
finish = true;
|
||||
break;
|
||||
} else if (atomic_load(&sock->readpaused)) {
|
||||
/*
|
||||
* Reading has been paused from withing
|
||||
|
|
|
|||
Loading…
Reference in a new issue