Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (1)
...@@ -88,6 +88,10 @@ function Unregistered_Client(id,socket) { ...@@ -88,6 +88,10 @@ function Unregistered_Client(id,socket) {
this.dns_pending = false; this.dns_pending = false;
} else { } else {
this.reverse_resolver = function(resp) { 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) { if (!this.dns_pending) {
log(LOG_DEBUG,format("[UNREG] WARNING: Received extraneous RDNS reply.")); log(LOG_DEBUG,format("[UNREG] WARNING: Received extraneous RDNS reply."));
return false; return false;
...@@ -108,6 +112,10 @@ function Unregistered_Client(id,socket) { ...@@ -108,6 +112,10 @@ function Unregistered_Client(id,socket) {
return false; return false;
} }
this.forward_resolver = function(resp) { 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) { if (!this.dns_pending) {
log(LOG_DEBUG,format("[UNREG] WARNING: Received extraneous DNS reply.")); log(LOG_DEBUG,format("[UNREG] WARNING: Received extraneous DNS reply."));
return false; return false;
......