mirror of
https://github.com/curl/curl.git
synced 2025-03-07 15:27:17 +08: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
@ -2892,7 +2892,8 @@ static CURLcode ftp_statemachine(struct Curl_easy *data,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* end of path */
|
/* end of path */
|
||||||
entry_extracted = TRUE;
|
if(Curl_dyn_len(&out))
|
||||||
|
entry_extracted = TRUE;
|
||||||
break; /* get out of this loop */
|
break; /* get out of this loop */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user