cope with empty virtual ports, RT#10574
authorivan <ivan>
Thu, 14 Apr 2011 18:23:01 +0000 (18:23 +0000)
committerivan <ivan>
Thu, 14 Apr 2011 18:23:01 +0000 (18:23 +0000)
FS/bin/freeside-torrus-srvderive

index b9ea95b..f6fc499 100644 (file)
@@ -69,6 +69,7 @@ MAIN: while (1) {
     my $serviceid = $torrus_srvderive->serviceid;
 
     my @serviceids = $torrus_srvderive->component_serviceids;
     my $serviceid = $torrus_srvderive->serviceid;
 
     my @serviceids = $torrus_srvderive->component_serviceids;
+    next unless @serviceids; #don't try to search for empty virtual ports
 
     my @in = ();
     for my $dir ('_IN', '_OUT') {
 
     my @in = ();
     for my $dir ('_IN', '_OUT') {