diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-07-05 18:15:09 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-07-05 18:15:14 +0200 |
commit | 1f11f552cea9358bd17a4c37a597799f11c52600 (patch) | |
tree | 56a3db212e9bae7a5b8d5b0c4d8393b551a95c13 | |
parent | bd996b60f742487ec3f2427ff1830cf6bf5da43c (diff) |
memset the on-stack device route when clearing local subnet routes
-rw-r--r-- | interface-ip.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |