curl: fix potential NULL dereference
Coverity CID 1299428: Dereference after null check (FORWARD_NULL)
This commit is contained in:
parent
84d811f6af
commit
42ed88e70a
@ -1497,7 +1497,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
|
|||||||
if(retry_sleep > RETRY_SLEEP_MAX)
|
if(retry_sleep > RETRY_SLEEP_MAX)
|
||||||
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
|
/* We have written data to a output file, we truncate file
|
||||||
*/
|
*/
|
||||||
if(!global->mute)
|
if(!global->mute)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user