Skip to content

Commit

Permalink
Nuke superfluous argument to fsockopen
Browse files Browse the repository at this point in the history
Signed-off-by: Ricky Elrod <ricky@elrod.me>
  • Loading branch information
relrod committed Jan 26, 2017
1 parent 878699e commit ff986a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/applications/whois/resources/dagd_whois.php
Expand Up @@ -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");
Expand Down

0 comments on commit ff986a9

Please sign in to comment.