From ec7809abb5b44cc13ce673eba094134ad332ffd7 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 21 Aug 2013 07:55:29 +0000 Subject: [PATCH] minor fix in ut_metadata --- src/ut_metadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ut_metadata.cpp b/src/ut_metadata.cpp index daa43919f..25c321def 100644 --- a/src/ut_metadata.cpp +++ b/src/ut_metadata.cpp @@ -309,7 +309,7 @@ namespace libtorrent { namespace int len; entry msg = bdecode(body.begin, body.end, len); - if (msg.type() == entry::undefined_t) + if (msg.type() != entry::dictionary_t) { #ifdef TORRENT_VERBOSE_LOGGING m_pc.peer_log("<== UT_METADATA [ not a dictionary ]");