fix bug in verbose logging with encryption

This commit is contained in:
Arvid Norberg 2011-08-31 20:38:48 +00:00
parent 97ca82984f
commit 8f1a811306
1 changed files with 1 additions and 1 deletions

View File

@ -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);