1
0
Fork 0
forked from mirror/openwrt
openwrt/package/network
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
..
config netifd: update to Git openwrt-23.05 (2024-01-04) 2024-01-04 13:52:50 +01:00
ipv6 odhcp6c: add skpriority option 2023-05-12 13:19:50 +02:00
services dnsmasq: mark global ubus context as closed after fork 2024-03-18 21:55:47 +01:00
utils iptables: backport patch fixing bug with string module 2023-11-12 14:14:25 +01:00