Author: ask
Date: Wed Feb 13 00:34:18 2008
New Revision: 846

Modified:
   trunk/plugins/greylisting

Log:
fix "Use of uninitialized value in pattern match" warning (Gavin Carr 
and Jim Murray)


Modified: trunk/plugins/greylisting
==============================================================================
--- trunk/plugins/greylisting   (original)
+++ trunk/plugins/greylisting   Wed Feb 13 00:34:18 2008
@@ -206,7 +206,7 @@
   return DECLINED if $self->qp->connection->notes('whitelisthost');
   return DECLINED if $transaction->notes('whitelistsender');
 
-  if ($config->{db_dir} =~ m{^([-a-zA-Z0-9./_]+)$}) {
+  if ($config->{db_dir} && $config->{db_dir} =~ m{^([-a-zA-Z0-9./_]+)$}) {
     $config->{db_dir} = $1; 
   }
 

Reply via email to