]> git.pld-linux.org Git - packages/wget.git/commitdiff
- kill SEGV on "Control connection closed"
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 13 Jul 2005 18:58:18 +0000 (18:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    wget-segv.patch -> 1.1

wget-segv.patch [new file with mode: 0644]

diff --git a/wget-segv.patch b/wget-segv.patch
new file mode 100644 (file)
index 0000000..4fbccc7
--- /dev/null
@@ -0,0 +1,24 @@
+--- wget-1.10/src/ftp-basic.c.orig     2005-05-17 00:08:57.000000000 +0200
++++ wget-1.10/src/ftp-basic.c  2005-07-13 21:03:36.903241688 +0200
+@@ -70,8 +70,10 @@
+     {
+       char *p;
+       char *line = fd_read_line (fd);
+-      if (!line)
++      if (!line) {
++      *ret_line = NULL;
+       return FTPRERR;
++      }
+       /* Strip trailing CRLF before printing the line, so that
+        escnonprint doesn't include bogus \012 and \015. */
+--- wget-1.10/src/ftp.c.orig   2005-05-17 14:53:08.000000000 +0200
++++ wget-1.10/src/ftp.c        2005-07-13 21:04:38.771836232 +0200
+@@ -1023,6 +1023,7 @@
+   err = ftp_response (csock, &respline);
+   if (err != FTPOK)
+     {
++      if(respline != NULL)
+       xfree (respline);
+       /* The control connection is decidedly closed.  Print the time
+        only if it hasn't already been printed.  */
This page took 0.096377 seconds and 4 git commands to generate.