You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2005/05/03 06:56:50 UTC

[Spamassassin Wiki] Update of "WrongMXPlugin" by DarylOshea

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by DarylOshea:
http://wiki.apache.org/spamassassin/WrongMXPlugin

The comment on the change is:
fix undef issue

------------------------------------------------------------------------------
  
    # if there is only one received header we can bail
    my $times_ref = ($permsgstatus->{received_header_times});
-   return 0 if (scalar(@$times_ref) < 2); # if it only hit one server were done
+   return 0 if (!defined($times_ref) || scalar(@$times_ref) < 2); # if it only hit one server we're done
  
    # next we need the recipient domain's MX records... who's the recipient
    my $recipient_domain;