[Fusioninventory-commit] [fusinv/fusioninventory-agent-task-network] 68501a: Work around Net::IP bug 71510
Gonéri Le Bouder
goneri at rulezlan.org
Mon Nov 12 15:32:14 UTC 2012
Branch: refs/heads/master
Home: https://github.com/fusinv/fusioninventory-agent-task-network
Commit: 68501a07f0f8cb942a9c2e28bed8246650a2c4d3
https://github.com/fusinv/fusioninventory-agent-task-network/commit/68501a07f0f8cb942a9c2e28bed8246650a2c4d3
Author: Gonéri Le Bouder <goneri at rulezlan.org>
Date: 2012-11-12 (Mon, 12 Nov 2012)
Changed paths:
M lib/FusionInventory/Agent/Task/NetDiscovery.pm
Log Message:
-----------
Work around Net::IP bug 71510
If the server send a bad IP range with 0.0.0.0, Net::IP->new() do not
generate a valid Net::IP object. We get an exception if we try to use
it:
$perl -MNet::IP -e '$ip = Net::IP->new("0.0.0.0-0.0.0.0"); print $ip->size()'
Can't call method "is_zero" on an undefined value at /usr/share/perl5/Math/BigInt.pm line 1197.
$perl -MNet::IP -e '$ip = Net::IP->new("1.0.0.0-1.0.0.0"); print $ip->size()'
The bug is already open on Net::IP:
https://rt.cpan.org/Public/Bug/Display.html?id=71510
closes: #1880
see: #1881
Reported-by: Walid Nouh <walid at wawax.info>
More information about the Fusioninventory-commit
mailing list