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:
parent
d80b117bff
commit
e67f4ff98c
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user