marsadm: safeguard peer matching

This commit is contained in:
Thomas Schoebel-Theuer 2020-07-31 18:56:05 +02:00
parent 08ee99d304
commit 9b618876a7
1 changed files with 1 additions and 0 deletions

View File

@ -1632,6 +1632,7 @@ sub get_alive_links {
foreach my $path (lamport_glob("$mars/ips/ip*-$hosts")) {
$path =~ m:/ip-(.*):;
my $peer = $1;
next unless $peer;
$cand{$peer} = 1;
# After join-cluster & co, links may take a while to appear
$peers{$peer} = 1 if $non_participating;