From 1f11f552cea9358bd17a4c37a597799f11c52600 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 Jul 2012 18:15:09 +0200 Subject: memset the on-stack device route when clearing local subnet routes --- interface-ip.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3