Subject: | Net::DNS::Nameserver exits unexpectedly |
Should check if $query is null in sub max_udp_len().
Please see the attachment file.
Subject: | Nameserver.pm.patch.txt |
--- /usr/local/lib/perl5/site_perl/5.10.1/mach/Net/DNS/Nameserver.pm 2009-12-30 19:01:39.000000000 +0800
+++ Nameserver.pm 2011-04-01 11:21:50.158555000 +0800
@@ -384,6 +384,8 @@
sub max_udp_len {
my ($self, $query) = @_;
+ return 512 unless $query;
+
for my $rr ($query->additional) {
return $rr->size if $rr->type eq 'OPT';
}