From 4183e4c298f09232176fce1684dff34a13b60741 Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Fri, 21 Nov 2014 11:29:48 -0500 Subject: [PATCH] dht: don't return random data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by Ákos Szőts --- src/dht.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dht.cpp b/src/dht.cpp index 09b62926..ea45b4b3 100644 --- a/src/dht.cpp +++ b/src/dht.cpp @@ -1085,6 +1085,7 @@ Dht::cancelPut(const InfoHash& id, const Value::Id& vid) ++it; } } + return canceled; } /* A struct storage stores all the stored peer addresses for a given info