- Fix to ignore tcp events for closed comm points.

This commit is contained in:
W.C.A. Wijngaards 2022-11-08 12:02:48 +01:00
parent f531faf163
commit 8367b24bc5
2 changed files with 6 additions and 0 deletions

View file

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

View file

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