From ff986a917c97b6291169202f08971ca3cb1ae174 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Thu, 26 Jan 2017 01:49:17 -0500 Subject: [PATCH] Nuke superfluous argument to fsockopen Signed-off-by: Ricky Elrod --- src/applications/whois/resources/dagd_whois.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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");