From 5a7fe934bfb84c510e9ef74d962544f1159d8786 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 21 Sep 2011 09:40:14 +0000 Subject: [PATCH] fix torrent_info swap with openssl --- src/torrent_info.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index df161b00c..68e4a5ce4 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -759,6 +759,10 @@ namespace libtorrent swap(m_creation_date, ti.m_creation_date); m_comment.swap(ti.m_comment); m_created_by.swap(ti.m_created_by); +#ifdef TORRENT_USE_OPENSSL + m_ssl_root_cert.swap(ti.m_ssl_root_cert); + m_aes_key.swap(ti.m_aes_key); +#endif boost::uint32_t tmp; SWAP(m_multifile, ti.m_multifile); SWAP(m_private, ti.m_private);