mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
parent
e6cb575586
commit
c6ee89d1a4
7
r5dev/thirdparty/curl/ftp.c
vendored
7
r5dev/thirdparty/curl/ftp.c
vendored
@ -2825,6 +2825,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
|
||||
const size_t buf_size = CURL_BUFSIZE(data->set.buffer_size);
|
||||
char *dir;
|
||||
char *store;
|
||||
bool entry_extracted = FALSE;
|
||||
|
||||
dir = malloc(nread + 1);
|
||||
if(!dir)
|
||||
@ -2856,7 +2857,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
|
||||
}
|
||||
else {
|
||||
/* end of path */
|
||||
*store = '\0'; /* zero terminate */
|
||||
entry_extracted = TRUE;
|
||||
break; /* get out of this loop */
|
||||
}
|
||||
}
|
||||
@ -2866,6 +2867,10 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
|
||||
ptr++;
|
||||
}
|
||||
|
||||
*store = '\0'; /* zero terminate */
|
||||
}
|
||||
if (entry_extracted) {
|
||||
|
||||
/* If the path name does not look like an absolute path (i.e.: it
|
||||
does not start with a '/'), we probably need some server-dependent
|
||||
adjustments. For example, this is the case when connecting to
|
||||
|
Loading…
x
Reference in New Issue
Block a user