From 8f1a811306da921bb57a8696395a1da992cde237 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 31 Aug 2011 20:38:48 +0000 Subject: [PATCH] fix bug in verbose logging with encryption --- src/bt_peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index ff9ea08a1..df3332a88 100644 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -514,7 +514,7 @@ namespace libtorrent #ifdef TORRENT_VERBOSE_LOGGING char const* level[] = {"plaintext", "rc4", "plaintext rc4"}; peer_log(" crypto provide : [ %s ]" - , level[allowed_enc_level]); + , level[allowed_enc_level-1]); #endif write_pe_vc_cryptofield(ptr, encrypt_size, crypto_provide, pad_size);