From fdb3a03fca309d151e4090f70b9da9509595d783 Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 8 Aug 2005 15:21:59 -0700 Subject: [PATCH] [svn] Don't free RESPLINE if ftp_response returns a status other than FTPOK. By Vasil Dimov. --- src/ChangeLog | 5 +++++ src/ftp.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 774f9b53..0d54e986 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-08-09 Vasil Dimov + + * ftp.c (getftp): Don't free RESPLINE if ftp_response returns a + status other than FTPOK. + 2005-08-04 Giuseppe Bonacci * ftp-ls.c (ftp_parse_unix_ls): Remember the position of the diff --git a/src/ftp.c b/src/ftp.c index dd27349b..7b79b8e2 100644 --- 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) -- 2.39.2