Commit 8633790d authored by Nick Morrott's avatar Nick Morrott

Import Upstream version 0.11

parent 9393c582
......@@ -7,7 +7,7 @@
# This program is free software; you can redistribute it
# and/or modify it under the same terms as Perl itself.
#
# $Revision: 1.16 $
# $Revision: 1.17 $
package Net::CIDR;
......@@ -54,7 +54,7 @@ use Math::BigInt;
);
$VERSION = "0.10";
$VERSION = "0.11";
1;
......@@ -1001,7 +1001,7 @@ sub cidradd {
$b[$i]=undef;
}
unless (_ipcmp($lo, $hi) > 0)
unless ((! defined $lo) || (! defined $hi) || _ipcmp($lo, $hi) > 0)
{
push @a, $lo;
push @b, $hi;
......
......@@ -15,3 +15,6 @@ Revision history for Perl extension Net::CIDR.
0.10 Mon Jul 19 19:45:33 EDT 2004
- Fix warning in addrandmask2cidr
- Fix validation of IPv6 addresses. 1:2 is not a valid Ipv6 address.
0.11 Tue Aug 9 21:17:55 EDT 2005
- Fix croak in cidradd if adding after 255.255.255.255
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment