Fix timeout code kicking in when PTR result is blank domain
git-svn-id: https://svn.perl.org/qpsmtpd/branches/high_perf@396 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
41e13e7454
commit
ed4e06bcd2
@ -92,7 +92,7 @@ sub DESTROY {
|
|||||||
my Danga::DNS $self = shift;
|
my Danga::DNS $self = shift;
|
||||||
my $now = time;
|
my $now = time;
|
||||||
foreach my $host (@{$self->{hosts}}) {
|
foreach my $host (@{$self->{hosts}}) {
|
||||||
if (!$self->{results}{$host}) {
|
if (!exists($self->{results}{$host})) {
|
||||||
print STDERR "DNS timeout (presumably) looking for $host after " . ($now - $self->{start}) . " secs\n";
|
print STDERR "DNS timeout (presumably) looking for $host after " . ($now - $self->{start}) . " secs\n";
|
||||||
$self->{callback}->("NXDOMAIN", $host);
|
$self->{callback}->("NXDOMAIN", $host);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user