diff --git a/lib/Qpsmtpd.pm b/lib/Qpsmtpd.pm index 603d853..b6574a3 100644 --- a/lib/Qpsmtpd.pm +++ b/lib/Qpsmtpd.pm @@ -159,8 +159,11 @@ sub config { return @config; } else { - return ($config[0] || $self->get_qmail_config($c, $type) || $defaults{$c}); - } + return $config[0] if defined($config[0]); + my $val = $self->get_qmail_config($c, $type); + return $val if defined($val); + return $defaults{$c}; + } } sub config_dir {