From 37d06d64cdfd5d25c86ab367a6d3dee59f93691e Mon Sep 17 00:00:00 2001 From: Alexander Langer Date: Wed, 6 Aug 1997 00:19:05 +0000 Subject: [PATCH] Ensure that the interface name is terminated. --- sys/netinet/ip_fw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index 9d047a60ad6..54018079d18 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -12,7 +12,7 @@ * * This software is provided ``AS IS'' without any warranties of any kind. * - * $Id: ip_fw.c,v 1.59 1997/06/04 22:09:15 julian Exp $ + * $Id: ip_fw.c,v 1.60 1997/08/02 14:32:51 bde Exp $ */ /* @@ -631,6 +631,7 @@ add_entry(struct ip_fw_head *chainptr, struct ip_fw *frwl) } bcopy(frwl, ftmp, sizeof(struct ip_fw)); + ftmp->fw_in_if.fu_via_if.name[FW_IFNLEN - 1] = '\0'; ftmp->fw_pcnt = 0L; ftmp->fw_bcnt = 0L; fwc->rule = ftmp;