[svn] Don't free RESPLINE if ftp_response returns a status other than FTPOK.

By Vasil Dimov.
This commit is contained in:
hniksic 2005-08-08 15:21:59 -07:00
parent fe777884cf
commit fdb3a03fca
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-08-09 Vasil Dimov <vd@datamax.bg>
* ftp.c (getftp): Don't free RESPLINE if ftp_response returns a
status other than FTPOK.
2005-08-04 Giuseppe Bonacci <g.bonacci@libero.it>
* ftp-ls.c (ftp_parse_unix_ls): Remember the position of the

View File

@ -999,7 +999,6 @@ Error in server response, closing control connection.\n"));
err = ftp_response (csock, &respline);
if (err != FTPOK)
{
xfree (respline);
/* The control connection is decidedly closed. Print the time
only if it hasn't already been printed. */
if (res != -1)