[Git][NTPsec/ntpsec][master] Prevent possible NULL deref during shutdown of neoclock driver.

Eric S. Raymond gitlab at mg.gitlab.com
Mon Jan 21 20:54:24 UTC 2019


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
46d3f7d5 by Eric S. Raymond at 2019-01-21T20:53:55Z
Prevent possible NULL deref during shutdown of neoclock driver.

- - - - -


1 changed file:

- ntpd/refclock_neoclock.c


Changes:

=====================================
ntpd/refclock_neoclock.c
=====================================
@@ -369,12 +369,12 @@ neoclock4x_shutdown(
 	    free(up);
 	    pp->unitptr = NULL;
 	}
-    }
 
-    msyslog(LOG_ERR, "REFCLOCK: NeoClock4X(%d): shutdown", pp->refclkunit);
+	msyslog(LOG_ERR, "REFCLOCK: NeoClock4X(%d): shutdown", pp->refclkunit);
 
-    NLOG(NLOG_CLOCKINFO)
-	msyslog(LOG_INFO, "REFCLOCK: NeoClock4X(%d): receiver shutdown done", pp->refclkunit);
+	NLOG(NLOG_CLOCKINFO)
+	    msyslog(LOG_INFO, "REFCLOCK: NeoClock4X(%d): receiver shutdown done", pp->refclkunit);
+    }
 }
 
 static void



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/46d3f7d5f396bee652a3dc173186a5d93f508691

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/46d3f7d5f396bee652a3dc173186a5d93f508691
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190121/83844c90/attachment-0001.html>


More information about the vc mailing list