]> sjero.net Git - wget/commitdiff
[svn] Don't free RESPLINE if ftp_response returns a status other than FTPOK.
authorhniksic <devnull@localhost>
Mon, 8 Aug 2005 22:21:59 +0000 (15:21 -0700)
committerhniksic <devnull@localhost>
Mon, 8 Aug 2005 22:21:59 +0000 (15:21 -0700)
By Vasil Dimov.

src/ChangeLog
src/ftp.c

index 774f9b53ffe7665b8fd793a1f576e2b0b29b2fa5..0d54e9861f8fed3cde3ce9702b56c5bfdcdcd01c 100644 (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
index dd27349b19709f85ed7dc5504844e1d0942d1280..7b79b8e2100ff25a8c946f3172d25855a4282e61 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -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)