This patch fixes a problem on linux/alpha (and probably others) where ntpd crashes from a floating point exception if only a local peer is found. This is caused by error[0] and synch[0] being used without prior initialization. Willy --- ./ntpd/ntp_proto.c.normal Sat Jun 23 07:50:37 2007 +++ ./ntpd/ntp_proto.c Sat Jun 23 08:34:27 2007 @@ -2083,11 +2083,15 @@ if (nlist == 0) { if (typeacts != 0) { typeacts->status = CTL_PST_SEL_DISTSYSPEER; - peer_list[0] = typeacts; + peer_list[0] = peer = typeacts; + error[0] = peer->jitter; + synch[0] = root_distance(peer) + peer->stratum * sys_maxdist; nlist = 1; } else if (typelocal != 0) { typelocal->status = CTL_PST_SEL_DISTSYSPEER; - peer_list[0] = typelocal; + peer_list[0] = peer = typelocal; + error[0] = peer->jitter; + synch[0] = root_distance(peer) + peer->stratum * sys_maxdist; nlist = 1; } else { if (osys_peer != NULL) {