2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Honour single read per client isc_nm_read() call in the TLSDNS

The TLSDNS transport was not honouring the single read callback for
TLSDNS client.  It would call the read callbacks repeatedly in case the
single TLS read would result in multiple DNS messages in the decoded
buffer.
This commit is contained in:
Ondřej Surý
2022-12-01 18:31:05 +01:00
parent 5383363ba9
commit e3c628d562

View File

@@ -1127,6 +1127,10 @@ tls_cycle_input(isc_nmsocket_t *sock) {
goto failure;
}
if (atomic_load(&sock->client)) {
break;
}
if (pending == 0) {
break;
}