update hops in @field as well as $line
[spider.git] / perl / DXProt.pm
index 1094578e61e08429ab4df159c237c75c2720708f..6ff479c1b61d9afee3b732b6687ce56bc29cb7be 100644 (file)
@@ -365,6 +365,7 @@ sub normal
                $hops--;
                return if $hops < 0;
                $line =~ s/\^H(\d+)(\^?\~?)?$/sprintf('^H%d%s', $hops, $trail)/e;
+               $field[-1] = "H$hops";
        }
 
        # send it out for processing
@@ -1012,7 +1013,7 @@ sub disconnect
        # broadcast to all other nodes that all the nodes connected to via me are gone
        unless ($pc39flag && $pc39flag == 2)  {
                $self->route_pc21($main::mycall, undef, @rout) if @rout;
-               $self->route_pc92d($main::mycall, undef, $node);
+               $self->route_pc92d($main::mycall, undef, $node) if $node;
        }
 
        # remove outstanding pings