marsadm: ignore illformed peers for versioning checks

This commit is contained in:
Thomas Schoebel-Theuer 2022-01-19 06:38:18 +01:00
parent 91d0b3fd35
commit 8796a72d54

View File

@ -2400,6 +2400,7 @@ sub get_global_versions {
}
# compute the mimimum of kernel features capabilities
foreach my $peer (get_any_peers()) {
next if $peer =~ $match_reserved_id;
my $features = get_alive_link("features", $peer, 1);
next unless (defined($features) && $features);
next unless $features =~ m/^([0-9]+),?([0-9]*),?([x0-9a-f]*)/;