Skip to content

Commit

Permalink
Pad IPs before passing them to gmp_import()
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Jul 19, 2023
1 parent 36ad4db commit 570b9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/X509/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ protected function getScanTargets(): Generator
}

foreach ($targets as $target) {
$addr = gmp_import($target->ip);
$addr = gmp_import(static::binary($target->ip));
$addrFound = false;
foreach ($this->job->getCIDRs() as $cidr) {
list($subnet, $mask) = $cidr;
Expand Down

0 comments on commit 570b9f4

Please sign in to comment.