summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Interface.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-rwxr-xr-xlib/Vyatta/Interface.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm
index 924058a..513f686 100755
--- a/lib/Vyatta/Interface.pm
+++ b/lib/Vyatta/Interface.pm
@@ -228,6 +228,7 @@ sub carrier {
or return;
my $val = <$carrier>;
+ $val = 0 if ! defined $val; # proc entry not readable on down interface
chomp $val;
close $carrier;
return $val;