fix non-openssl build

This commit is contained in:
arvidn 2016-02-21 18:40:06 -05:00
parent cdfdbfd6aa
commit 61a67ece4a
1 changed files with 4 additions and 0 deletions

View File

@ -5891,7 +5891,11 @@ retry:
void session_impl::maybe_update_udp_mapping(int nat, bool ssl, int local_port, int external_port) void session_impl::maybe_update_udp_mapping(int nat, bool ssl, int local_port, int external_port)
{ {
int local, external, protocol; int local, external, protocol;
#ifdef TORRENT_USE_OPENSSL
int* mapping = ssl ? m_ssl_udp_mapping : m_udp_mapping; int* mapping = ssl ? m_ssl_udp_mapping : m_udp_mapping;
#else
int* mapping = m_udp_mapping;
#endif
if (nat == 0 && m_natpmp) if (nat == 0 && m_natpmp)
{ {
if (mapping[nat] != -1) if (mapping[nat] != -1)