upnp delete mapping bugfix

This commit is contained in:
Arvid Norberg 2009-03-11 00:42:46 +00:00
parent de233c23a2
commit ee3075ec12
1 changed files with 1 additions and 1 deletions

View File

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