diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index e9e7ecb37..e08134afe 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -87,7 +87,7 @@ namespace libtorrent { namespace dht entry const* nid = e->find_key("node-id"); if (nid == 0 || nid->type() != entry::string_t || nid->string().length() != 20) return (node_id::min)(); - return node_id(node_id(nid->string().c_str())); + return node_id(nid->string().c_str()); } } // anonymous namespace