Browse Source

wrong struct calloc'ed; ok henning@

OPENBSD_3_6
alexander 20 years ago
parent
commit
ff4cb11db4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/client.c

+ 2
- 2
src/usr.sbin/ntpd/client.c View File

@ -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) {


Loading…
Cancel
Save