Blame SOURCES/dnsmasq-2.66-Fix-wrong_size_in_memset_call.patch
|
|
cab8d5 |
From 4582c0efe7d7af93517b1f3bcc7af67685ab3e5c Mon Sep 17 00:00:00 2001
|
|
|
cab8d5 |
From: Dave Reisner <d@falconindy.com>
|
|
|
cab8d5 |
Date: Thu, 18 Apr 2013 09:47:49 +0100
|
|
|
cab8d5 |
Subject: [PATCH] Fix wrong size in memset() call.
|
|
|
cab8d5 |
|
|
|
cab8d5 |
Thanks to Dave Reisner.
|
|
|
cab8d5 |
---
|
|
|
cab8d5 |
src/ipset.c | 2 +-
|
|
|
cab8d5 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
cab8d5 |
|
|
|
cab8d5 |
diff --git a/src/ipset.c b/src/ipset.c
|
|
|
cab8d5 |
index a34ed96..f175fa4 100644
|
|
|
cab8d5 |
--- a/src/ipset.c
|
|
|
cab8d5 |
+++ b/src/ipset.c
|
|
|
cab8d5 |
@@ -110,7 +110,7 @@ static int new_add_to_ipset(const char *setname, const struct all_addr *ipaddr,
|
|
|
cab8d5 |
return -1;
|
|
|
cab8d5 |
}
|
|
|
cab8d5 |
|
|
|
cab8d5 |
- memset(buffer, 0, sizeof(buffer));
|
|
|
cab8d5 |
+ memset(buffer, 0, BUFF_SZ);
|
|
|
cab8d5 |
|
|
|
cab8d5 |
nlh = (struct nlmsghdr *)buffer;
|
|
|
cab8d5 |
nlh->nlmsg_len = NL_ALIGN(sizeof(struct nlmsghdr));
|
|
|
cab8d5 |
--
|
|
|
cab8d5 |
1.8.1.4
|
|
|
cab8d5 |
|