Bug 6653 - DnsResolver inappropriate test on an IPv6-only host
Summary: DnsResolver inappropriate test on an IPv6-only host
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 3.3.2
Hardware: PC All
: P3 normal
Target Milestone: 3.4.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 14:11 UTC by Mark Martinec
Modified: 2011-09-21 00:18 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status
removes the unwarranted DNS resolver test patch None Mark Martinec [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Martinec 2011-08-24 14:11:47 UTC
The M::SA::DnsResolver::load_resolver comes to an incorrect conclusion
on an IPv6-only host, claiming that inet6 is unavailable and requires
Net::DNS to use (a nonexistent) inet (IPv4), which then leads to
nonfunctional DNS tests in SpamAssassin.

Tested on FreeBSD 9.0B1, http://wiki.freebsd.org/IPv6Only

The attached fix removes a redundant tests which causes the trouble.
Comment 1 Mark Martinec 2011-08-24 14:14:07 UTC
trunk:
  Bug 6653: DnsResolver inappropriate test on an IPv6-only host
  Sending lib/Mail/SpamAssassin/DnsResolver.pm
Committed revision 1161105.
Comment 2 Mark Martinec 2011-08-24 14:15:00 UTC
Created attachment 4956 [details]
removes the unwarranted DNS resolver test
Comment 3 Mark Martinec 2011-09-21 00:18:28 UTC
closing as fixed