[ntpsec commit] Foward-ported fix for [Bug 2823] ntpsweep with recursive peers option.
Eric S. Raymond
esr at ntpsec.org
Fri Oct 23 02:21:22 UTC 2015
Module: ntpsec
Branch: master
Commit: 9010cb4f537f0548c0df91521218fc0be8b6e266
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=9010cb4f537f0548c0df91521218fc0be8b6e266
Author: Eric S. Raymond <esr at thyrsus.com>
Date: Thu Oct 22 22:20:33 2015 -0400
Foward-ported fix for [Bug 2823] ntpsweep with recursive peers option.
---
NEWS | 1 +
util/ntpsweep/ntpsweep.in | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index b7f00aa..34792cf 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ on user-visible changes.
== Forward-ported bugfixes from NTP Classic ==
* [Bug 2778] Implement "apeers" ntpq command to include associd.
+* [Bug 2823] ntpsweep with recursive peers option doesn't work. H.Stenn.
* [Bug 2836] DFC77 patches from Frank Kardel to make decoding more
robust, and require 2 consecutive timestamps to be consistent.
* [Bug 2845] Harden memory allocation in ntpd; implement and
diff --git a/util/ntpsweep/ntpsweep.in b/util/ntpsweep/ntpsweep.in
index c852457..e640f6d 100644
--- a/util/ntpsweep/ntpsweep.in
+++ b/util/ntpsweep/ntpsweep.in
@@ -185,7 +185,8 @@ sub scan_host {
# got answers ? If so, go on.
if ($daemonversion) {
if ($showpeers) {
- my @peers_tmp = ntp_peers($host);
+ my $peers_ref = ntp_peers($host);
+ my @peers_tmp = @$peers_ref;
for (@peers_tmp) {
$_->{remote} =~ s/^(?: |x|\.|-|\+|#|\*|o)([^ ]+)/$1/;
push @peers, $_->{remote};
More information about the vc
mailing list