summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-02-19 19:08:20 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-02-19 19:08:20 +0000
commit43f5fce9f385d36b1224556533ad26d42e65bcf5 (patch)
tree60df0f9deae8fa3ceda47e5b9a1b2e1c16771f0d /sbin/pfctl
parent19f27af9e07093c98dded40989b50f3986c7d010 (diff)
Fix little buffer overflow on 64-bit platforms.
Produce wrong output on pfr7 regression test, discovered by henning@. ok+testing henning@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index d68605b1e09..484b2987142 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.143 2003/02/13 10:28:58 henning Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.144 2003/02/19 19:08:19 cedric Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1228,7 +1228,7 @@ host_v4(const char *s)
int bits;
memset(&ina, 0, sizeof(struct in_addr));
- if ((bits = inet_net_pton(AF_INET, s, &ina, sizeof(&ina))) > -1) {
+ if ((bits = inet_net_pton(AF_INET, s, &ina, sizeof(ina))) > -1) {
h = calloc(1, sizeof(struct node_host));
if (h == NULL)
err(1, "address: calloc");