[Git][NTPsec/ntpsec][master] Back out a logic error in my previous commit.

Eric S. Raymond gitlab at mg.gitlab.com
Sun Jul 10 10:01:01 UTC 2016


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


Commits:
b337e060 by Eric S. Raymond at 2016-07-10T06:00:31-04:00
Back out a logic error in my previous commit.

- - - - -


1 changed file:

- ntpd/ntp_config.c


Changes:

=====================================
ntpd/ntp_config.c
=====================================
--- a/ntpd/ntp_config.c
+++ b/ntpd/ntp_config.c
@@ -2820,6 +2820,13 @@ config_fudge(
 				stoa(&addr_sock));
 		}
 
+		if (!ISREFCLOCKADR(&addr_sock)) {
+			err_flag = 1;
+			msyslog(LOG_ERR,
+				"inappropriate address %s for the fudge command, line ignored",
+				stoa(&addr_sock));
+		}
+
 		/* Parse all the options to the fudge command */
 		ZERO(clock_stat);
 		curr_opt = HEAD_PFIFO(curr_fudge->options);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b337e060e6b2258b19c0c4f01d3043be660424f6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160710/9c1a7d3a/attachment.html>


More information about the vc mailing list