aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-08-31 01:33:58 +0000
committerRob Austein <sra@hactrn.net>2006-08-31 01:33:58 +0000
commitffa5cd4a5ccae0157136a3427d22927e3d7c5edf (patch)
treee36001b1db52c1124200ffea65f2f047a1f6c790 /scripts
parent966499ea1e66d45d75cebda7d74e51be1fca7bb2 (diff)
Lingering paranoia
svn path=/scripts/rcynic-prototype.pl; revision=247
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rcynic-prototype.pl9
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) {