diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-05-07 21:02:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-05-07 21:02:21 +0000 |
commit | e481d679b264fba519f1e12bc7f131057b8501e9 (patch) | |
tree | 5b4f8b0e2e095cdf9f2ce6bae0c60a83da874a96 /lib | |
parent | eb68aa38e3a79ee76967261aeb8c4364223f87d9 (diff) |
- Liam Healy filed the debian bug report #480044
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480044) identifying a
segfault when using krb5 ftp, but the krb4 code had the same problem.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -622,9 +622,13 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ struct timeval now = Curl_tvnow(); size_t nread; int cache_skip=0; + int value_to_be_ignored=0; if(ftpcode) *ftpcode = 0; /* 0 for errors */ + else + /* make the pointer point to something for the rest of this function */ + ftpcode = &value_to_be_ignored; *nreadp=0; |