From fd94457aebfba5236eea629aa668c306e2d55973 Mon Sep 17 00:00:00 2001 From: nnposter Date: Thu, 25 Dec 2025 22:35:10 +0000 Subject: [PATCH] Remove unnecessary variable initialization --- nselib/ftp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nselib/ftp.lua b/nselib/ftp.lua index b9289122e..2e54c0942 100644 --- a/nselib/ftp.lua +++ b/nselib/ftp.lua @@ -236,18 +236,18 @@ end --- Start PASV mode -- --- For IPv6 connections, attempts to use EPSV (RFC 2428). If the server sends an address that is not the target address, then this is an error. +-- For IPv6 connections, attempts to use EPSV (RFC 2428). If the server sends +-- an address that is not the target address, then this is an error. -- @param socket The connected command socket -- @param buffer The receive buffer -- @return The connected data socket, or nil on error -- @return Error message if data socket is nil function pasv(socket, buffer) - local epsv = false local status, lhost, lport, rhost, rport = socket:get_info() if not status then return nil, ("Can't determine remote host IP: %s"):format(lhost) end - epsv = #ipOps.ip_to_str(rhost) > 4 + local epsv = #ipOps.ip_to_str(rhost) > 4 ::TRY_AGAIN:: local cmd = epsv and "EPSV" or "PASV"