From 7fb80f35ab429449a32a0af44d3c9b80ea80655c Mon Sep 17 00:00:00 2001 From: Jared Johnson Date: Thu, 6 Nov 2014 16:23:29 -0600 Subject: [PATCH] Fix some broken variable names --- plugins/greylisting | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/greylisting b/plugins/greylisting index a29163f..3a8bf57 100644 --- a/plugins/greylisting +++ b/plugins/greylisting @@ -237,8 +237,8 @@ sub load_exclude_files { sub load_exclude_file { my ( $self, $filename ) = @_; my $fh; - if ( ! open $fh, $exclude_file ) { - warn "Couldn't open greylist exclude file $exclude_file:$!\n"; + if ( ! open $fh, $filename ) { + warn "Couldn't open greylist exclude file $filename:$!\n"; next; } while ( my $line = <$fh> ) { @@ -259,7 +259,7 @@ sub exclude_host { $self->{_exclude_ip}{$pattern} = undef; } else { - $self->{_exclude_host}{$x} = undef; + $self->{_exclude_host}{$pattern} = undef; } }