summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAlexander Guy <alexander@cvs.openbsd.org>2004-07-03 21:11:30 +0000
committerAlexander Guy <alexander@cvs.openbsd.org>2004-07-03 21:11:30 +0000
commit1bf4b02aceafbe4d5e6e4c76f3fa4a93d54d1bac (patch)
tree4b54382f332dc7310bec4f8de4328aae8577c9c1 /usr.sbin
parent8a49ad7ac6c950b7f707f452c75e0f4b30d983ef (diff)
wrong struct calloc'ed; ok henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index c742d1d11fb..b79ea20e317 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.1 2004/06/17 19:17:48 henning Exp $ */
+/* $OpenBSD: client.c,v 1.2 2004/07/03 21:11:29 alexander Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -32,7 +32,7 @@ client_peer_init(struct ntp_peer *p)
struct sockaddr_in *sa_in;
struct sockaddr_in6 *sa_in6;
- if ((p->query = calloc(1, sizeof(struct ntp_msg))) == NULL)
+ if ((p->query = calloc(1, sizeof(struct ntp_query))) == NULL)
fatal("client_query calloc");
switch (p->ss.ss_family) {