Fix to return an actual value

This commit is contained in:
Ilia Ross 2024-06-15 16:50:04 +03:00
parent cd1555b3e1
commit 178f527afa
No known key found for this signature in database
GPG Key ID: 121E166DD9C821AB

View File

@ -350,7 +350,7 @@ if ($fh6) {
while(1) {
$$port++;
if ($$port < 0 || $$port > 65535) {
return "Failed to allocate a free port number: $port";
return "Failed to allocate a free port number: $$port";
}
$pack = pack_sockaddr_in($$port, INADDR_ANY);
next if (!bind($fh, $pack));