From 089b16002952a192a90edb677c7d4923c1b989f4 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 31 Oct 2025 16:59:30 +0100 Subject: [PATCH] confd: fix possible NULL pointer deref. Found by Coverity Scan Signed-off-by: Joachim Wiberg --- src/confd/src/infix-firewall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/confd/src/infix-firewall.c b/src/confd/src/infix-firewall.c index ebdb4539..c043b413 100644 --- a/src/confd/src/infix-firewall.c +++ b/src/confd/src/infix-firewall.c @@ -68,6 +68,9 @@ static void mark_interfaces_used(struct lyd_node *cfg, char **ifaces) { struct lyd_node *node; + if (!ifaces) + return; + LYX_LIST_FOR_EACH(lyd_child(cfg), node, "interface") { const char *ifname = lyd_get_value(node);