mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:13:31 +03:00
- 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.
This commit is contained in:
parent
eb68aa38e3
commit
e481d679b2
3 changed files with 11 additions and 1 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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue