From 2c473a9b9167e3b5e00ab378145bf4ef9e5dbb56 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 21 May 2003 00:28:35 +0000 Subject: Check if nick is defined in remailer-key parsing --- Echolot/Conf.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Echolot') diff --git a/Echolot/Conf.pm b/Echolot/Conf.pm index 176df6a..ba040af 100644 --- a/Echolot/Conf.pm +++ b/Echolot/Conf.pm @@ -1,7 +1,7 @@ package Echolot::Conf; # (c) 2002 Peter Palfrader -# $Id: Conf.pm,v 1.38 2003/02/16 09:09:57 weasel Exp $ +# $Id: Conf.pm,v 1.39 2003/05/21 00:28:35 weasel Exp $ # =pod @@ -303,6 +303,9 @@ sub parse_mix_key($$$) { for my $keyid (keys %mixmasters) { my $remailer_address = $mixmasters{$keyid}->{'address'}; + (defined $mixmasters{$keyid}->{'nick'}) or + Echolot::Log::info("Could not parse a remailer-key reply."), + next; (defined $mixmasters{$keyid}->{'nick'} && ! defined $mixmasters{$keyid}->{'key'}) and Echolot::Log::info("Mixmaster key header without key in reply from $remailer_address."), next; -- cgit v1.2.3