From ee3075ec126ca6d6cd27d46080f0d2b91f93c64c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 11 Mar 2009 00:42:46 +0000 Subject: [PATCH] upnp delete mapping bugfix --- src/upnp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upnp.cpp b/src/upnp.cpp index 2f1642400..77f2860ba 100644 --- a/src/upnp.cpp +++ b/src/upnp.cpp @@ -203,7 +203,7 @@ void upnp::delete_mapping(int mapping) { mutex_t::scoped_lock l(m_mutex); - if (mapping <= int(m_mappings.size())) return; + if (mapping >= int(m_mappings.size())) return; global_mapping_t& m = m_mappings[mapping];