helo: stop processing after first match

This commit is contained in:
Matt Simerson 2013-03-26 22:14:26 -04:00
parent 7e888cf380
commit 8e437ec305

View File

@ -411,6 +411,7 @@ sub no_forward_dns {
next unless $rr->type =~ /^(?:A|AAAA)$/; next unless $rr->type =~ /^(?:A|AAAA)$/;
$self->check_ip_match( $rr->address ); $self->check_ip_match( $rr->address );
$hits++; $hits++;
last if $self->connection->notes('helo_forward_match');
} }
if ( $hits ) { if ( $hits ) {
$self->log(LOGDEBUG, "pass, forward DNS") if $hits; $self->log(LOGDEBUG, "pass, forward DNS") if $hits;