Skip Menu |

This queue is for tickets about the Net-IPTrie CPAN distribution.

Report information
The Basics
Id: 115579
Status: new
Priority: 0/
Queue: Net-IPTrie

People
Owner: Nobody in particular
Requestors: georg_hoesch [...] genua.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Minor bug in Net::IPTrie
Date: Fri, 24 Jun 2016 16:39:05 +0200
To: bug-net-iptrie [...] rt.cpan.org
From: Georg Hoesch <georg_hoesch [...] genua.de>
Hi, IPTrie cannot find IP 0.1.2.3 in subnet 0.0.0.0/8. I propose this bugfix: --- src/lib/Net/IPTrie.pm.orig 2016-06-24 16:31:33.865199914 +0200 +++ src/lib/Net/IPTrie.pm 2016-06-24 16:31:13.976935832 +0200 @@ -168,7 +168,7 @@ $p->$r(Net::IPTrie::Node->new(up=>$p)); }else{ # Just return the closest covering IP block - if ( $p->iaddress ){ + if ( defined $p->iaddress ){ return $p; }else{ return $p->parent; Best regards Georg -- Georg Hoesch, georg.hoesch@genua.de, +49 (89) 99 19 50-168 genua GmbH Domagkstrasse 7, 85551 Kirchheim bei Muenchen tel +49 89 991950-0, fax -999, www.genublog.de, www.genua.de Geschaeftsfuehrer: Dr. Magnus Harlander, Dr. Michaela Harlander, Bernhard Schneck. Amtsgericht Muenchen HRB 98238 genua ist ein Unternehmen der Bundesdruckerei-Gruppe.