Parent Directory | Revision Log | Revision Graph
* Fri Feb 22 2013 Ian Wells <esmith@wellsi.com> 2.2.0-8.sme - Improve error checking in isValidIP [SME: 7364]
1 | diff -ruN e-smith-lib-2.2.0.old/root/usr/lib/perl5/site_perl/esmith/util/network.pm e-smith-lib-2.2.0/root/usr/lib/perl5/site_perl/esmith/util/network.pm |
2 | --- e-smith-lib-2.2.0.old/root/usr/lib/perl5/site_perl/esmith/util/network.pm 2004-08-25 09:05:37.000000000 -0700 |
3 | +++ e-smith-lib-2.2.0/root/usr/lib/perl5/site_perl/esmith/util/network.pm 2013-02-22 08:20:11.000000000 -0800 |
4 | @@ -131,6 +131,7 @@ |
5 | sub isValidIP($) |
6 | { |
7 | my ($string) = @_; |
8 | + return unless defined ipv4_chkip($string); |
9 | return $string eq ipv4_chkip($string); |
10 | } |
11 |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |