svn commit: r1931726 - spamassassin/trunk/lib/Mail/SpamAssassin

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <[email protected]>
Author: gbechis
Date: Thu Feb  5 18:20:27 2026
New Revision: 1931726

Log:
return early if the host is not valid

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/RegistryBoundaries.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/RegistryBoundaries.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/RegistryBoundaries.pm	Thu Feb  5 17:50:09 2026	(r1931725)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/RegistryBoundaries.pm	Thu Feb  5 18:20:27 2026	(r1931726)
@@ -282,6 +282,9 @@ sub uri_to_domain {
       my $ip = inet_ntoa(pack("N", oct($host)));
       if($ip =~ IS_IP_ADDRESS) {
         $host = $ip;
+      } else {
+        # $host cannot be a valid domain, return early
+        return;
       }
     } else {
       # check that it's a valid hostname/fqdn
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.