diff options
author | alex <alex@FreeBSD.org> | 1997-08-06 00:19:05 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1997-08-06 00:19:05 +0000 |
commit | 46a6ff520b1c406855b58ee16000c750e65e725f (patch) | |
tree | 8dd4edd85deef211610addc8c3dc39ac19fa32be /sys/netinet | |
parent | 00ca5799cb7aa4d5cf4db0a9b986d42ebfc28a53 (diff) | |
download | FreeBSD-src-46a6ff520b1c406855b58ee16000c750e65e725f.zip FreeBSD-src-46a6ff520b1c406855b58ee16000c750e65e725f.tar.gz |
Ensure that the interface name is terminated.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_fw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index 9d047a6..5401807 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; |