Skip to content
Snippets Groups Projects
Commit 5dd67f7d authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Drop DNS replies for closed connections

parent 4d018183
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2407 passed
......@@ -88,6 +88,10 @@ function Unregistered_Client(id,socket) {
this.dns_pending = false;
} else {
this.reverse_resolver = function(resp) {
if (!this.socket.is_connected) {
log(LOG_DEBUG,format("[UNREG] RDNS reply discarded because socket closed."));
return false;
}
if (!this.dns_pending) {
log(LOG_DEBUG,format("[UNREG] WARNING: Received extraneous RDNS reply."));
return false;
......@@ -108,6 +112,10 @@ function Unregistered_Client(id,socket) {
return false;
}
this.forward_resolver = function(resp) {
if (!this.socket.is_connected) {
log(LOG_DEBUG,format("[UNREG] DNS reply discarded because socket closed."));
return false;
}
if (!this.dns_pending) {
log(LOG_DEBUG,format("[UNREG] WARNING: Received extraneous DNS reply."));
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment