fix "Use of uninitialized value in pattern match" warning (Gavin Carr

and Jim Murray)


git-svn-id: https://svn.perl.org/qpsmtpd/trunk@846 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
Ask Bjørn Hansen 2008-02-13 08:34:18 +00:00
parent 214e7e0ec0
commit 4d27319233

View File

@ -206,7 +206,7 @@ sub denysoft_greylist {
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;
}