diff --git a/src/applications/whois/resources/dagd_whois.php b/src/applications/whois/resources/dagd_whois.php index 86476c2..f6d3ce7 100644 --- a/src/applications/whois/resources/dagd_whois.php +++ b/src/applications/whois/resources/dagd_whois.php @@ -140,9 +140,8 @@ private function fetchWhoisDetails() { (int)$this->whois_port, $errno, $errstr, - null, $timeout); - if (!$sock) { + if (($errno != 0) || ($errno == 0 && $sock === false)) { return $this->first_query_result; } fwrite($sock, $this->query.$this->domain."\r\n");