From 4a8fb608ce45b55d35a91b001e7c6d5bf514b288 Mon Sep 17 00:00:00 2001 From: henning <> Date: Wed, 7 Jul 2004 03:57:28 +0000 Subject: [PATCH] yuck, another bad sizeof(). again in code hacked on the Frankfurt->Montreal flight. should we draw concludions from that? I'd like to blame the Air Canada seats... --- src/usr.sbin/ntpd/ntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index d9a66db0..ec350e49 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.13 2004/07/07 01:01:27 henning Exp $ */ +/* $OpenBSD: ntp.c,v 1.14 2004/07/07 03:57:28 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -149,7 +149,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *conf) } bzero(pfd, sizeof(struct pollfd) * pfd_elms); - bzero(idx2peer, sizeof(struct ntp_peer) * idx2peer_elms); + bzero(idx2peer, sizeof(void *) * idx2peer_elms); nextaction = next_adjtime; pfd[PFD_PIPE_MAIN].fd = ibuf_main.fd; pfd[PFD_PIPE_MAIN].events = POLLIN;