]> git.pld-linux.org Git - packages/wget.git/blame - wget-segv.patch
- added segv patch, release 2
[packages/wget.git] / wget-segv.patch
CommitLineData
22c4bb4a
JB
1--- wget-1.10/src/ftp-basic.c.orig 2005-05-17 00:08:57.000000000 +0200
2+++ wget-1.10/src/ftp-basic.c 2005-07-13 21:03:36.903241688 +0200
3@@ -70,8 +70,10 @@
4 {
5 char *p;
6 char *line = fd_read_line (fd);
7- if (!line)
8+ if (!line) {
9+ *ret_line = NULL;
10 return FTPRERR;
11+ }
12
13 /* Strip trailing CRLF before printing the line, so that
14 escnonprint doesn't include bogus \012 and \015. */
15--- wget-1.10/src/ftp.c.orig 2005-05-17 14:53:08.000000000 +0200
16+++ wget-1.10/src/ftp.c 2005-07-13 21:04:38.771836232 +0200
17@@ -1023,6 +1023,7 @@
18 err = ftp_response (csock, &respline);
19 if (err != FTPOK)
20 {
21+ if(respline != NULL)
22 xfree (respline);
23 /* The control connection is decidedly closed. Print the time
24 only if it hasn't already been printed. */
This page took 0.047742 seconds and 4 git commands to generate.