core_dns Only clear the slot of the request if the object in the slot matches what was passed to MyManager::RemoveRequest()

This commit is contained in:
Attila Molnar 2015-05-13 00:45:19 +02:00
parent c090e54be9
commit 17787004f1

View File

@ -471,7 +471,8 @@ class MyManager : public Manager, public Timer, public EventHandler
void RemoveRequest(DNS::Request* req)
{
this->requests[req->id] = NULL;
if (requests[req->id] == req)
requests[req->id] = NULL;
}
std::string GetErrorStr(Error e)