> The "dirp" pointer is not closed if goto inside the while loop is called.
> This diff:
> - closes the dirp object
> - moves the jump mark "out" a bit higher to clean the file pointer as well as
> descriptor if the goto statement is called, and reset global variables
> The "send_file_list" function is only called on NLST.
I think it is safer to just move the closedir(dirp) to be after the