From 178f527afacd22f38d12f4384eea4b1ea7a4cd75 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Sat, 15 Jun 2024 16:50:04 +0300 Subject: [PATCH] Fix to return an actual value --- fastrpc.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastrpc.cgi b/fastrpc.cgi index 9f330590d..09619849d 100755 --- a/fastrpc.cgi +++ b/fastrpc.cgi @@ -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));