summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--routingTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/routingTable.cpp b/routingTable.cpp
index d51d718..2cc9e3e 100644
--- a/routingTable.cpp
+++ b/routingTable.cpp
@@ -97,7 +97,7 @@ u_int16_t& RoutingTable::getOrNewRoutingTEUnlocked(const NetworkAddress & addr)
if(it!=routes_.end())
return it->second;
- routes_.insert(RoutingMap::value_type(addr, 0));
+ routes_.insert(RoutingMap::value_type(addr, 1));
it = routes_.find(addr);
return it->second;
}