|
@ -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> |
|
|
* 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_in *sa_in; |
|
|
struct sockaddr_in6 *sa_in6; |
|
|
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"); |
|
|
fatal("client_query calloc"); |
|
|
|
|
|
|
|
|
switch (p->ss.ss_family) { |
|
|
switch (p->ss.ss_family) { |
|
|