From 9b618876a7db3cdd2601f8bda982b97667a7bd19 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Fri, 31 Jul 2020 18:56:05 +0200 Subject: [PATCH] marsadm: safeguard peer matching --- userspace/marsadm | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/marsadm b/userspace/marsadm index e01d6019..6c35c9bd 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -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;