For dynamic interfaces don't return false if vlist_find returns NULL as
the calling function will try to free iface in case of an error which has
already been freed in interface_change_config()
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
iface = vlist_find(&interfaces, name, iface, node);
free(name);
- if (!iface)
- return false;
-
/* Don't delete dynamic interface on reload */
- iface->node.version = -1;
+ if (iface)
+ iface->node.version = -1;
}
return true;