From eebb5098d41c7bdc5b1b2cf2e94c24eef5a61a7d Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Sun, 3 May 2020 16:08:42 +0200 Subject: [PATCH] marsadm: safeguard missing replaylink --- userspace/marsadm | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/marsadm b/userspace/marsadm index d35755a6..6d3abbc1 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -2553,6 +2553,7 @@ sub log_purge_res { my $peer = $2; my $replay = "$basedir/replay-$peer"; my $target = get_link($replay, 1); + next unless $target; lprint "found replay link '$replay' -> '$target'\n"; $target =~ s/,.*//; $start_logs{$target}++;