System: ntp version 3.4 Patch #: 11 Priority: From: Description: Stupid typo - dereferenced unused variable in select_clock(). This caused heartburn on Suns, which don't have address 0 mapped into their address space. Please apply this patch or grab a new tar file. Repeat-By: Fix: From rn, say "| patch -p -N -d DIR", where DIR is your ntp source directory. Outside of rn, say "cd DIR; patch -p -N #define PATCHLEVEL 11 Index: ntp_proto.c *** ntp_proto.c.old Wed May 3 19:03:45 1989 --- ntp_proto.c Wed May 3 19:03:54 1989 *************** *** 1,5 **** #ifndef lint ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.9 $ $Date: 89/05/03 15:13:25 $"; #endif /* --- 1,5 ---- #ifndef lint ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.10 $ $Date: 89/05/03 19:03:02 $"; #endif /* *************** *** 11,16 **** --- 11,19 ---- /* * $Log: ntp_proto.c,v $ + * Revision 3.4.1.10 89/05/03 19:03:02 louie + * Stupid typo - dereferenced unused variable in select_clock() + * * Revision 3.4.1.9 89/05/03 15:13:25 louie * Add code to count number of peer switches and inhibited peer switches. Clock * selection code has been updated to reflect 21 April 1989 draft of NTP spec. *************** *** 978,986 **** sel_lst[i].distance = dispersion; precision_thres = NTP_MAXSKW + 1.0/(1<<-sys.precision); ! if (peer->precision < 0 && ! -peer->precision < sizeof(long)*NBBY) ! precision_thres += 1.0/(1<<-peer->precision); sel_lst[i].precision = precision_thres; --- 981,990 ---- sel_lst[i].distance = dispersion; precision_thres = NTP_MAXSKW + 1.0/(1<<-sys.precision); ! if (sel_lst[i].peer->precision < 0 && ! -sel_lst[i].peer->precision < sizeof(long)*NBBY) ! precision_thres += ! 1.0/(1<<-sel_lst[i].peer->precision); sel_lst[i].precision = precision_thres; .