File ntp-segfault_on_invalid_device.patch of Package ntp
diff -ru ntpd/refclock_parse.c ntpd/refclock_parse.c
--- ntpd/refclock_parse.c 2007-08-18 22:24:46.000000000 +0200
+++ ntpd/refclock_parse.c 2008-09-25 17:03:56.000000000 +0200
@@ -3319,6 +3319,10 @@
struct parseunit *parse = (struct parseunit *)peer->procptr->unitptr;
parsectl_t tmpctl;
+ /* If opening the clock device failed, unitptr is NULL */
+ if (!parse)
+ return;
+
static char outstatus[400]; /* status output buffer */
if (out)
Nur in ntp-segfault_on_invalid_device/ntpd: refclock_parse.c.orig.