mirror of
https://github.com/curl/curl.git
synced 2026-05-06 13:47:30 +03:00
writeout: fix NULL dereference for "this url"
Detected by torture test 1029
Follow-up to 7a90ddf88f
Closes #6374
This commit is contained in:
parent
aba01da639
commit
44a504e5e4
1 changed files with 2 additions and 1 deletions
|
|
@ -141,7 +141,8 @@ void ourWriteOut(CURL *curl, struct per_transfer *per, const char *writeinfo,
|
|||
curl_easy_strerror(result), stream);
|
||||
break;
|
||||
case VAR_INPUT_URL:
|
||||
fputs(per->this_url, stream);
|
||||
if(per->this_url)
|
||||
fputs(per->this_url, stream);
|
||||
break;
|
||||
case VAR_URLNUM:
|
||||
fprintf(stream, "%u", per->urlnum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue