diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 00c38002f07e..a0f1646f1e40 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++;