From ac2137b43501f4be1b2ba327dc822c4cbc1a2371 Mon Sep 17 00:00:00 2001 From: David Brodsky Date: Mon, 2 Jul 2007 16:35:29 +0200 Subject: [PATCH] Check if AzDHT's response contains element "value". --- src/azdht/azdhtmodule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/azdht/azdhtmodule.cpp b/src/azdht/azdhtmodule.cpp index df8bfdd..daa4069 100644 --- a/src/azdht/azdhtmodule.cpp +++ b/src/azdht/azdhtmodule.cpp @@ -154,6 +154,7 @@ void AzDHTModule::processMessage(const Tairent::Core::BEncode &b) try { response = b["response"].asString(); key = b["key"].asString(); + b["values"]; // just make sure that there is such item } catch (const Tairent::Core::BEncodeException &e) { WARNING((const char *) String("Error while processing server's response: " + (const String &) e)); return; -- 2.11.4.GIT