diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-07-05 18:17:46 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-07-05 18:17:46 +0200 |
commit | b6a4bf7dbfeb4cafaac91cbb7b4d9ae97cbb587e (patch) | |
tree | d9f2b384e44ff6f92c2cd19d3b1c47ff551c5780 | |
parent | 589c302e0b1c662d8cc25846e861ea0f8eed89f4 (diff) |
zero-initialize the ifreq when adding/removing bridge member interfaces
-rw-r--r-- | system-linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system-linux.c b/system-linux.c index 24ea2e3..3372a66 100644 --- a/system-linux.c +++ b/system-linux.c @@ -275,6 +275,8 @@ int system_bridge_delbr(struct device *bridge) static int system_bridge_if(const char *bridge, struct device *dev, int cmd, void *data) { struct ifreq ifr; + + memset(&ifr, 0, sizeof(ifr)); if (dev) ifr.ifr_ifindex = dev->ifindex; else |