From: Harlan Stenn Date: Fri, 20 Oct 2006 04:44:54 +0000 (-0400) Subject: refclock_wwv.c fix from Dave Mills X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4575f89bf8ae9b3b633db6b866a5ff3f2f7283d;p=thirdparty%2Fntp.git refclock_wwv.c fix from Dave Mills bk: 45385446EkqQLObLeQO9XH38ArhI4g --- diff --git a/ntpd/refclock_wwv.c b/ntpd/refclock_wwv.c index 9a13079841..b7e0d9a6b1 100644 --- a/ntpd/refclock_wwv.c +++ b/ntpd/refclock_wwv.c @@ -764,6 +764,9 @@ wwv_shutdown( pp = peer->procptr; up = (struct wwvunit *)pp->unitptr; + if (up == NULL) + return; + io_closeclock(&pp->io); #ifdef ICOM if (up->fd_icom > 0)