helo: avoid undef warning when rDNS is invalid

specifically, when rDNS returns an invalid FQDN like 'null.', which doesn't have
a domain part.
This commit is contained in:
Matt Simerson 2012-11-19 13:12:48 -05:00
parent d80b117bff
commit e67f4ff98c

View File

@ -471,6 +471,7 @@ sub check_name_match {
my ($dns_name, $helo_name) = @_;
return if ! $dns_name;
return if split(/\./, $dns_name) < 2; # not a FQDN
if ( $dns_name eq $helo_name ) {
$self->log( LOGDEBUG, "reverse name match" );