Skip to content
Snippets Groups Projects
Commit 42ed88e7 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curl: fix potential NULL dereference

Coverity CID 1299428: Dereference after null check (FORWARD_NULL)
parent 84d811f6
No related branches found
No related tags found
No related merge requests found
......@@ -1497,7 +1497,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
if(retry_sleep > RETRY_SLEEP_MAX)
retry_sleep = RETRY_SLEEP_MAX;
}
if(outs.bytes && outs.filename) {
if(outs.bytes && outs.filename && outs.stream) {
/* We have written data to a output file, we truncate file
*/
if(!global->mute)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment