confd: fix possible NULL ptr deref

Introduced in 35eeae55.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-09-27 16:43:42 +02:00
parent 6521de28e7
commit 015946219b
+1 -1
View File
@@ -1657,7 +1657,7 @@ static int netdag_gen_iface_del(struct dagger *net, struct lyd_node *dif,
if (dagger_should_skip_current(net, ifname))
return 0;
if (!strcmp(iftype, "infix-if-type:veth")) {
if (iftype && !strcmp(iftype, "infix-if-type:veth")) {
struct lyd_node *node;
const char *peer;