mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 05:13:01 +02:00
confd: fix possible NULL ptr deref
Introduced in 35eeae55.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user