Mailing List Archive

[Bug 7994] New: Plugin ASN.pm, AskDNS.pm: return early if $pkt is undefined
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7994

Bug ID: 7994
Summary: Plugin ASN.pm, AskDNS.pm: return early if $pkt is
undefined
Product: Spamassassin
Version: 4.0.0
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Plugins
Assignee: dev@spamassassin.apache.org
Reporter: sa-mst@lrz.de
Target Milestone: Undefined

Both plugins have a comment

# NOTE: $pkt will be undef if the DNS query was aborted (e.g. timed out)

However, instead of returning immediately, the plugins go on, but at the end do
nothing. This makes the understanding of the code more difficult than needed.

--
You are receiving this mail because:
You are the assignee for the bug.