summaryrefslogtreecommitdiff
path: root/Echolot/Conf.pm
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-05-21 00:28:35 +0000
committerPeter Palfrader <peter@palfrader.org>2003-05-21 00:28:35 +0000
commit2c473a9b9167e3b5e00ab378145bf4ef9e5dbb56 (patch)
tree4add3f9482edfd26451ed16d714dd360976a5924 /Echolot/Conf.pm
parent4dba92d97804dce8ccd1a844973b3fbc9cbe3f0d (diff)
Check if nick is defined in remailer-key parsing
Diffstat (limited to 'Echolot/Conf.pm')
-rw-r--r--Echolot/Conf.pm5
1 files changed, 4 insertions, 1 deletions
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 <peter@palfrader.org>
-# $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;