diff options
Diffstat (limited to 'scripts/rcynic-prototype.pl')
-rw-r--r-- | scripts/rcynic-prototype.pl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/rcynic-prototype.pl b/scripts/rcynic-prototype.pl index 77f6c889..c01dd1b1 100644 --- a/scripts/rcynic-prototype.pl +++ b/scripts/rcynic-prototype.pl @@ -252,13 +252,8 @@ sub process_cert { # Process a certificate -- this is the core of the program print("Already checked certificate $uri, skipping\n"); next; } - if (grep({$file eq $_} @chain)) { - print("Gah! Certificate is its own ancestor?!? Avoiding infinite loop for $uri\n"); - for my $f (($file, @chain)) { - print(" rsync://$f\n"); - } - next; - } + die("Certificate $uri is its own ancestor?!?") + if (grep({$file eq $_} @chain)); copy_cert($file); my $x = parse_cert($uri, $temporary_tree); if (!$x) { |