FreeBSD Bugzilla – Attachment 159829 Details for
Bug 202283
mail/spamassassin: Fix another incompatibility with Net::DNS 1.01 (RR formatting issue)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-URIDNSB.pm - fixes incompatibility with dns/p5-Net-DNS 1.01
patch-URIDNSB.pm (text/plain), 891 bytes, created by
Mark.Martinec
on 2015-08-13 00:18:47 UTC
(
hide
)
Description:
patch-URIDNSB.pm - fixes incompatibility with dns/p5-Net-DNS 1.01
Filename:
MIME Type:
Creator:
Mark.Martinec
Created:
2015-08-13 00:18:47 UTC
Size:
891 bytes
patch
obsolete
>--- lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm (revision 1694052) >+++ lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm (working copy) >@@ -942,9 +942,8 @@ > next unless (defined($str) && defined($dom)); > dbg("uridnsbl: got($j) NS for $dom: $str"); > >- if ($str =~ /IN\s+NS\s+(\S+)/) { >- my $nsmatch = lc $1; >- $nsmatch =~ s/\.$//; >+ if ($rr->type eq 'NS') { >+ my $nsmatch = lc $rr->nsdname; # available since at least Net::DNS 0.14 > my $nsrhblstr = $nsmatch; > my $fullnsrhblstr = $nsmatch; > >@@ -1025,9 +1024,9 @@ > } > dbg("uridnsbl: complete_a_lookup got(%d) A for %s: %s", $j,$hname,$str); > >- local $1; >- if ($str =~ /IN\s+A\s+(\S+)/) { >- $self->lookup_dnsbl_for_ip($pms, $ent->{obj}, $1); >+ if ($rr->type eq 'A') { >+ my $ip_address = $rr->rdatastr; >+ $self->lookup_dnsbl_for_ip($pms, $ent->{obj}, $ip_address); > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202283
: 159829