From b6a4bf7dbfeb4cafaac91cbb7b4d9ae97cbb587e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 Jul 2012 18:17:46 +0200 Subject: [PATCH] zero-initialize the ifreq when adding/removing bridge member interfaces --- system-linux.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.25.1