From e67f4ff98c31c621b698dbc37b37d94849c8021d Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 19 Nov 2012 13:12:48 -0500 Subject: [PATCH] helo: avoid undef warning when rDNS is invalid specifically, when rDNS returns an invalid FQDN like 'null.', which doesn't have a domain part. --- plugins/helo | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/helo b/plugins/helo index 1692b4d..8e7d5a2 100644 --- a/plugins/helo +++ b/plugins/helo @@ -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" );