summaryrefslogtreecommitdiff
path: root/sbin/ping6/ping6.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-12 18:53:38 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-12 18:53:38 +0000
commit685054b6c8bf1bb1b9f1e4c0fcee244263dd216b (patch)
treeb24e2968d9a644cc6f27989de84879e4f8c376d7 /sbin/ping6/ping6.c
parentd5479b4e0f25357997bc95f30ff5d95c1750c416 (diff)
correct fd_set allocation. from deraadt
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r--sbin/ping6/ping6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 848c044545e..0d5e596cad7 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.23 2001/01/12 18:01:43 deraadt Exp $ */
+/* $OpenBSD: ping6.c,v 1.24 2001/01/12 18:53:37 itojun Exp $ */
/* $KAME: ping6.c,v 1.109 2000/12/27 11:32:37 itojun Exp $ */
/*
@@ -970,7 +970,7 @@ main(argc, argv)
(void)setitimer(ITIMER_REAL, &itimer, NULL);
}
- fdmasks = howmany(s+1, NFDBITS);
+ fdmasks = howmany(s + 1, NFDBITS) * sizeof(fd_mask);
if ((fdmaskp = malloc(fdmasks)) == NULL)
err(1, "malloc");