From: Felix Fietkau Date: Thu, 5 Jul 2012 16:15:09 +0000 (+0200) Subject: memset the on-stack device route when clearing local subnet routes X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=1f11f552cea9358bd17a4c37a597799f11c52600 memset the on-stack device route when clearing local subnet routes --- 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;