projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589c302
)
zero-initialize the ifreq when adding/removing bridge member interfaces
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 5 Jul 2012 16:17:46 +0000
(18:17 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 5 Jul 2012 16:17:46 +0000
(18:17 +0200)
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index 24ea2e3792c7d077543a00532c674500e1551813..3372a6672580871bc1c461d27958bde37f07f4ee 100644
(file)
--- 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