summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>2006-09-16 06:34:30 +0000
committerjhay <jhay@FreeBSD.org>2006-09-16 06:34:30 +0000
commit3f597283a3bb3f57f6625859d29936c349ec32fe (patch)
tree39265ca7c006ebe37042e80d0ce36b9a170a8ea6 /sbin/ipfw
parentac9152509c5ffb8563c24c0dc44d29e4ff665bbd (diff)
downloadFreeBSD-src-3f597283a3bb3f57f6625859d29936c349ec32fe.zip
FreeBSD-src-3f597283a3bb3f57f6625859d29936c349ec32fe.tar.gz
Use bzero() to clear the whole ipfw_insn_icmp6 structure in fill_icmp6types(),
otherwise this command ipfw add allow ipv6-icmp from any to 2002::1 icmp6types 1,2,128,129 turns into icmp6types 1,2,32,33,34,...94,95,128,129 PR: 102422 (part 1) Submitted by: Andrey V. Elsukov <bu7cher at yandex.ru> MFC after: 5 days
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/ipfw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index 00c3800..a0f1646 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -1206,7 +1206,7 @@ fill_icmp6types(ipfw_insn_icmp6 *cmd, char *av)
{
uint8_t type;
- cmd->d[0] = 0;
+ bzero(cmd, sizeof(*cmd));
while (*av) {
if (*av == ',')
av++;
OpenPOWER on IntegriCloud