From 7143a5dda14501e7270fbf211dc69a761826a396 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 28 Jul 2013 17:50:36 +0000 Subject: [PATCH] merged fix from RC_0_16 --- include/libtorrent/torrent_info.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/libtorrent/torrent_info.hpp b/include/libtorrent/torrent_info.hpp index 7abfd5e4a..7b19f7374 100644 --- a/include/libtorrent/torrent_info.hpp +++ b/include/libtorrent/torrent_info.hpp @@ -477,6 +477,7 @@ namespace libtorrent #else std::string ssl_cert() const { + if (m_info_dict.type() != lazy_entry::dict_t) return ""; return m_info_dict.dict_find_string_value("ssl-cert"); } #endif