mirror of
https://github.com/curl/curl.git
synced 2026-07-26 13:57:57 +03:00
ftp: only consider entry path if it has a length
Follow-up from 8edcfedc1a
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65631
Avoids a NULL pointer deref.
Closes #12648
This commit is contained in:
parent
a0f94800d5
commit
1058483615
1 changed files with 2 additions and 1 deletions
|
|
@ -2892,7 +2892,8 @@ static CURLcode ftp_statemachine(struct Curl_easy *data,
|
|||
}
|
||||
else {
|
||||
/* end of path */
|
||||
entry_extracted = TRUE;
|
||||
if(Curl_dyn_len(&out))
|
||||
entry_extracted = TRUE;
|
||||
break; /* get out of this loop */
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue