]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
refclock_wwv.c fix from Dave Mills
authorHarlan Stenn <stenn@ntp.org>
Fri, 20 Oct 2006 04:44:54 +0000 (00:44 -0400)
committerHarlan Stenn <stenn@ntp.org>
Fri, 20 Oct 2006 04:44:54 +0000 (00:44 -0400)
bk: 45385446EkqQLObLeQO9XH38ArhI4g

ntpd/refclock_wwv.c

index 9a13079841f3cb7f5c4a127bd311e12b7676bb77..b7e0d9a6b1df9e955516614e95bf7640b32a023e 100644 (file)
@@ -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)