summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-03-29 17:07:59 +0000
committerderaadt <deraadt@openbsd.org>2004-03-29 17:07:59 +0000
commite256ce2ea05ecf7d846ea5089fc9bee6c4ad4861 (patch)
treef8e7bea9b327dbc5a9e9d2a65d841a4ff2e987bb
parentwrong FD_ZERO(); from ho, hshoexer, markus (diff)
downloadwireguard-openbsd-e256ce2ea05ecf7d846ea5089fc9bee6c4ad4861.tar.xz
wireguard-openbsd-e256ce2ea05ecf7d846ea5089fc9bee6c4ad4861.zip
use malloc (oops)
-rw-r--r--sbin/isakmpd/monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/monitor.c b/sbin/isakmpd/monitor.c
index f6e9e67f0c7..8ad17ad3ebb 100644
--- a/sbin/isakmpd/monitor.c
+++ b/sbin/isakmpd/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.15 2004/03/29 16:32:47 deraadt Exp $ */
+/* $OpenBSD: monitor.c,v 1.16 2004/03/29 17:07:59 deraadt Exp $ */
/*
* Copyright (c) 2003 Håkan Olsson. All rights reserved.
@@ -548,7 +548,7 @@ monitor_loop (int debugging)
maxfd = m_state.s + 1;
fdsn = howmany (maxfd, NFDBITS) * sizeof (fd_mask);
- fds = (fd_set *)calloc (fdsn);
+ fds = (fd_set *)malloc (fdsn);
if (!fds)
{
kill (m_state.pid, SIGTERM);