From 65e88f2fa6f793fd6872c84fd5a6c709ffbe7601 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Wed, 8 Nov 2017 15:07:04 -0500
Subject: [PATCH] build: toInfoHash->to

---
 src/dht_proxy_server.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp
index 586a8b77..6aef30ac 100644
--- a/src/dht_proxy_server.cpp
+++ b/src/dht_proxy_server.cpp
@@ -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);
-- 
GitLab