Fix wrong size in memset() call.

Thanks to Dave Reisner.
This commit is contained in:
Dave Reisner authored and Simon Kelley committed 2013-04-18 21:02:41 +01:00
1 parent 834f36fe6d
commit 4582c0efe7
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ static int new_add_to_ipset(const char *setname, const struct all_addr *ipaddr,
return -1;
}
memset(buffer, 0, sizeof(buffer));
memset(buffer, 0, BUFF_SZ);
nlh = (struct nlmsghdr *)buffer;
nlh->nlmsg_len = NL_ALIGN(sizeof(struct nlmsghdr));