SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
16
net/p5-Net-IPTrie/patches/patch-lib_Net_IPTrie_pm
Normal file
16
net/p5-Net-IPTrie/patches/patch-lib_Net_IPTrie_pm
Normal file
|
@ -0,0 +1,16 @@
|
|||
https://rt.cpan.org/Public/Bug/Display.html?id=115579
|
||||
IPTrie cannot find IP 0.1.2.3 in subnet 0.0.0.0/8.
|
||||
$p->iaddress is defined for 0.0.0.0 but has numeric value 0.
|
||||
|
||||
Index: lib/Net/IPTrie.pm
|
||||
--- lib/Net/IPTrie.pm.orig
|
||||
+++ lib/Net/IPTrie.pm
|
||||
@@ -168,7 +168,7 @@ sub find {
|
||||
$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;
|
Loading…
Add table
Add a link
Reference in a new issue