diff options
-rwxr-xr-x | lib/Vyatta/Misc.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index dc8b89e..3d0f7b2 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -117,7 +117,8 @@ sub getInterfacesIPadresses { if ($type ne 'all') { $mask = $type_hash{$type}; - die "Invalid type specified to retreive IP addresses for: $type"; + die "Invalid type specified to retreive IP addresses for: $type" + unless $mask; } foreach my $name (getInterfaces()) { |