Extend closing the netlink in TCP handler processes to *BSD.

This may not be necessary, as the socket doesn't revieve broadcasts,
but it can't hurt.
This commit is contained in:
Simon Kelley committed 2026-07-09 21:45:40 +01:00
1 parent 1da5cc2951
commit 7ebe7ebb93
1 file changed
+4
+4
View File
@@ -2179,6 +2179,8 @@ static void do_tcp_connection(struct listener *listener, time_t now, int slot)
forever awaiting the result. To avoid this
close the netlink socket in the child. */
close(daemon->netlinkfd);
#elif defined(HAVE_BSD_NETWORK)
close(daemon->routefd);
#endif
/* Close inherited listening sockets in the child process.
@@ -2316,6 +2318,8 @@ int swap_to_tcp(struct frec *forward, time_t now, int status, struct dns_header
forever awaiting the result. To avoid this
close the netlink socket in the child. */
close(daemon->netlinkfd);
#elif defined(HAVE_BSD_NETWORK)
close(daemon->routefd);
#endif
/* Close inherited listening sockets in the child process.