X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface-ip.c;h=0610ffde65311378ab0befab1207c69cd07aa7e3;hp=fa84fc76ed0a63f13dabb09f8e53fcb20b9932d2;hb=1f11f552cea9358bd17a4c37a597799f11c52600;hpb=bd996b60f742487ec3f2427ff1830cf6bf5da43c diff --git a/interface-ip.c b/interface-ip.c index fa84fc7..0610ffd 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -270,6 +270,7 @@ interface_handle_subnet_route(struct interface *iface, struct device_addr *addr, struct device *dev = iface->l3_dev.dev; struct device_route route; + memset(&route, 0, sizeof(route)); route.iface = iface; route.flags = addr->flags; route.mask = addr->mask;