Initial public busybox maemo commit, 3:1.10.2.legal-1osso12
[busybox4maemo] / debian / patches / busybox-zero-ifr.ifr_hwaddr.sa_data.patch
1 diff --git a/networking/interface.c b/networking/interface.c
2 index 44bd8d3..6970535 100644
3 --- a/networking/interface.c
4 +++ b/networking/interface.c
5 @@ -616,6 +616,7 @@ static int if_fetch(struct interface *ife)
6  
7         strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
8         memset(ife->hwaddr, 0, 32);
9 +       memset(ifr.ifr_hwaddr.sa_data, 0, 8);
10         if (ioctl(skfd, SIOCGIFHWADDR, &ifr) >= 0)
11                 memcpy(ife->hwaddr, ifr.ifr_hwaddr.sa_data, 8);
12