From ffa5cd4a5ccae0157136a3427d22927e3d7c5edf Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 31 Aug 2006 01:33:58 +0000 Subject: Lingering paranoia svn path=/scripts/rcynic-prototype.pl; revision=247 --- scripts/rcynic-prototype.pl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'scripts') 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) { -- cgit v1.2.3