From: Harlan Stenn Date: Fri, 20 Oct 2006 04:44:54 +0000 (-0400) Subject: refclock_wwv.c fix from Dave Mills X-Git-Tag: NTP_4_2_3P60_RC~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74da7b83a1b9af53ec20b2d089f2e6df426a9288;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 9a1307984..b7e0d9a6b 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)