mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
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:
parent
c090e54be9
commit
17787004f1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user