openwrt-redmi-ax3000/package
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
..
base-files base-files: execute package's "postinst" after executing uci-defaults 2024-01-27 10:36:43 +01:00
boot uboot-envtools: add support for Zyxel EX5601-T0 ubootmod 2024-03-12 23:13:38 +01:00
devel perf: opt-out of lto usage 2023-08-11 12:53:34 +02:00
firmware firmware: intel-microcode: update to 20240312 2024-03-16 00:42:38 +01:00
kernel kernel: Remove dsmark support 2024-03-08 11:28:10 +01:00
libs openssl: update to 3.0.13 2024-02-04 19:18:17 +01:00
network dnsmasq: mark global ubus context as closed after fork 2024-03-18 21:55:47 +01:00
system urngd: update to version 2023-11-01 2023-11-01 22:22:45 +01:00
utils ucode: add libjson-c/host dependency 2024-02-04 19:18:17 +01:00
Makefile build: do not depend on $(STAGING_DIR)/.prepared when in SDK 2024-03-04 23:59:24 +01:00