dnsmasq: add option broadcast to host sections
[openwrt.git] / package / network / services / dnsmasq / patches / 110-fix-incorrect-length-memset.patch
1 Index: dnsmasq-2.66/src/ipset.c
2 ===================================================================
3 --- dnsmasq-2.66.orig/src/ipset.c       2013-04-17 14:52:49.000000000 +0200
4 +++ dnsmasq-2.66/src/ipset.c    2013-04-24 08:25:05.905712707 +0200
5 @@ -110,7 +110,7 @@
6        return -1;
7      }
8    
9 -  memset(buffer, 0, sizeof(buffer));
10 +  memset(buffer, 0, BUFF_SZ);
11  
12    nlh = (struct nlmsghdr *)buffer;
13    nlh->nlmsg_len = NL_ALIGN(sizeof(struct nlmsghdr));