diff options
Diffstat (limited to 'contrib/ntp/scripts/ntpsweep/ntpsweep.in')
-rw-r--r-- | contrib/ntp/scripts/ntpsweep/ntpsweep.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/ntp/scripts/ntpsweep/ntpsweep.in b/contrib/ntp/scripts/ntpsweep/ntpsweep.in index fed35d1..75ac0c8 100644 --- a/contrib/ntp/scripts/ntpsweep/ntpsweep.in +++ b/contrib/ntp/scripts/ntpsweep/ntpsweep.in @@ -138,7 +138,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}; |