diff options
Diffstat (limited to 'usr.sbin/ntpd/ntp.c')
-rw-r--r-- | usr.sbin/ntpd/ntp.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index f27e42a4c15..1a476c611b0 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.68 2006/05/14 22:33:51 henning Exp $ */ +/* $OpenBSD: ntp.c,v 1.69 2006/05/25 19:25:46 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -444,11 +444,8 @@ priv_adjtime(void) conf->status.refid4 = peers[offset_cnt / 2]->update.status.refid4; - if (peers[offset_cnt / 2]->addr->ss.ss_family == AF_INET) - conf->status.refid = ((struct sockaddr_in *) - &peers[offset_cnt / 2]->addr->ss)->sin_addr.s_addr; - else - conf->status.refid = conf->status.refid4; + conf->status.refid = + peers[offset_cnt / 2]->update.status.send_refid; } free(peers); |