diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-05-13 00:45:19 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-05-13 00:45:19 +0200 |
commit | 17787004f196f92ea8e5e47ef5852a906491ee1d (patch) | |
tree | e594f250e2dda28c08b0abd9a0c9315707b61d4d /src/coremods | |
parent | c090e54be9c01f862a734ad31a3e6c01ff259d3a (diff) |
core_dns Only clear the slot of the request if the object in the slot matches what was passed to MyManager::RemoveRequest()
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_dns.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coremods/core_dns.cpp b/src/coremods/core_dns.cpp index 5493470ae..6652841d0 100644 --- a/src/coremods/core_dns.cpp +++ b/src/coremods/core_dns.cpp @@ -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) |