Skip to content

Commit

Permalink
build: toInfoHash->to
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarOk1412 committed Nov 8, 2017
1 parent 4430b1e commit 65e88f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dht_proxy_server.cpp
Expand Up @@ -322,7 +322,7 @@ DhtProxyServer::putEncrypted(const std::shared_ptr<restbed::Session>& session) c
std::string strJson(buf.begin(), buf.end());
bool parsingSuccessful = reader.parse(strJson.c_str(), root);
InfoHash to(root["to"].asString());
if (parsingSuccessful && toInfoHash) {
if (parsingSuccessful && to) {
auto value = std::make_shared<Value>(root);
Json::FastWriter writer;
dht_->putEncrypted(key, to, value);
Expand Down

0 comments on commit 65e88f2

Please sign in to comment.