openwrt/package/network/services/dnsmasq
Sven Eckelmann af22a169c1 dnsmasq: mark global ubus context as closed after fork
If the dnsmasq process forks to handle TCP connections, it closes the ubus
context. But instead of changing the daemon wide pointer to NULL, only the
local variable was adjusted - and this portion of the code was even dropped
(dead store) by some optimizing compilers.

It makes more sense to change the daemon->ubus pointer because various
functions are already checking it for NULL. It is also the behavior which
ubus_destroy() implements.

Fixes: d8b33dad0b ("dnsmasq: add support for monitoring and modifying dns lookup results via ubus")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
(cherry picked from commit 711dcb7763)
2024-03-18 21:55:47 +01:00
..
files dnsmasq: configure dynamic dhcp6 and dhcp4 independently 2023-04-01 22:35:13 +02:00
patches dnsmasq: mark global ubus context as closed after fork 2024-03-18 21:55:47 +01:00
Makefile treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00