Subject: | intip method return nothing if 0.0.0.0 |
intip() method should return a Math::BigInt object.
But the method returns nothing if the object's IP address is
0.0.0.0.
Internally intip() tests if the result Math::BigInt object is TRUE
before returning it. But the test fails against Math::BigInt(0).
Attached file is a patch to fix this problem.
Note that iptab fails as of Net::IP 1.25, because size() method
used in the script is reimplemented with the broken intip() method.
--
Kazuyuki Maejima
Subject: | intip-0.patch |
--- Net-IP-1.25/IP.pm.orig 2006-05-23 01:46:40.000000000 +0900
+++ Net-IP-1.25/IP.pm 2006-07-04 01:54:55.000000000 +0900
@@ -410,7 +410,7 @@
my $int = ip_bintoint($self->binip());
- if (!$int) {
+ if (ref($int) ne "Math::BigInt") {
$self->{error} = $ERROR;
$self->{errno} = $ERRNO;
return;