set the nextHopId whenever we know the nextHopInfo (duh) [thanks oOo!]

this should fix the deserialization errors from tunnels.dat
This commit is contained in:
jrandom
2004-08-10 04:11:58 +00:00
committed by zzz
parent ec0c912c6f
commit 8627328047

View File

@ -307,6 +307,7 @@ class TunnelBuilder {
if (prev != null) {
prev.setNextHop(peer);
prev.setNextHopInfo(cur);
prev.setNextHopId(cur.getTunnelId());
} else {
first = cur;
}
@ -331,6 +332,7 @@ class TunnelBuilder {
cur = cur.getNextHopInfo();
cur.setNextHop(last.getThisHop());
cur.setNextHopInfo(last);
cur.setNextHopId(last.getTunnelId());
}
return first;
@ -393,6 +395,7 @@ class TunnelBuilder {
prev.setNextHop(peer);
prev.setNextHopInfo(cur);
prev.setNextHopId(cur.getTunnelId());
prev = cur;
}