summaryrefslogtreecommitdiff
path: root/routingTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'routingTable.cpp')
-rw-r--r--routingTable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/routingTable.cpp b/routingTable.cpp
index d23bc4f..9db9f61 100644
--- a/routingTable.cpp
+++ b/routingTable.cpp
@@ -82,8 +82,7 @@ u_int16_t RoutingTable::getRoute(const NetworkAddress & addr)
Lock lock(mutex_);
if (routes_.empty())
return 0;
- NetworkPrefix prefix(addr);
- prefix.setNetworkPrefixLength(32);
+ NetworkPrefix prefix(addr,32);
RoutingMap::iterator it = routes_.lower_bound(prefix);
it--;
if (it!=routes_.end())