svn commit: r1932277 - spamassassin/trunk/lib/Mail/SpamAssassin/Plugin

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <177331073534.2107004.12981417076280446974@svn02-us-east.apache.org>
Author: gbechis
Date: Thu Mar 12 10:18:55 2026
New Revision: 1932277

Log:
avoid a warning if http connection breaks

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm	Thu Mar 12 09:01:39 2026	(r1932276)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm	Thu Mar 12 10:18:55 2026	(r1932277)
@@ -1062,6 +1062,8 @@ sub recursive_lookup {
       }
     } else {
       my $response = $ua->$method($redir_url);
+      return if not defined $response;
+
       my $http_equiv = 0;
       if (!$response->is_redirect) {
         dbg("URL is not a redirect: $redir_url = ".$response->status_line);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.