mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix to ignore tcp events for closed comm points.
This commit is contained in:
parent
f531faf163
commit
8367b24bc5
2 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
8 November 2022: Wouter
|
||||||
|
- Fix to ignore tcp events for closed comm points.
|
||||||
|
|
||||||
21 October 2022: George
|
21 October 2022: George
|
||||||
- Merge #767 from jonathangray: consistently use IPv4/IPv6 in
|
- Merge #767 from jonathangray: consistently use IPv4/IPv6 in
|
||||||
unbound.conf.5.
|
unbound.conf.5.
|
||||||
|
|
|
||||||
|
|
@ -2623,6 +2623,9 @@ comm_point_tcp_handle_callback(int fd, short event, void* arg)
|
||||||
log_assert(c->type == comm_tcp);
|
log_assert(c->type == comm_tcp);
|
||||||
ub_comm_base_now(c->ev->base);
|
ub_comm_base_now(c->ev->base);
|
||||||
|
|
||||||
|
if(c->fd == -1 || c->fd != fd)
|
||||||
|
return; /* duplicate event, but commpoint closed. */
|
||||||
|
|
||||||
#ifdef USE_DNSCRYPT
|
#ifdef USE_DNSCRYPT
|
||||||
/* Initialize if this is a dnscrypt socket */
|
/* Initialize if this is a dnscrypt socket */
|
||||||
if(c->tcp_parent) {
|
if(c->tcp_parent) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue