mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
lib: survive some NULL input args
The input string pointer to: curl_escape curl_easy_escape curl_unescape curl_easy_unescape The running_handles pointer to: curl_multi_perform curl_multi_socket_action curl_multi_socket_all curl_multi_socket Reported-by: icy17 on github Fixes #14247 Closes #14262
This commit is contained in:
parent
2a59c8d4ce
commit
0795014caa
2 changed files with 6 additions and 4 deletions
|
|
@ -2778,7 +2778,8 @@ CURLMcode curl_multi_perform(struct Curl_multi *multi, int *running_handles)
|
|||
}
|
||||
} while(t);
|
||||
|
||||
*running_handles = (int)multi->num_alive;
|
||||
if(running_handles)
|
||||
*running_handles = (int)multi->num_alive;
|
||||
|
||||
if(CURLM_OK >= returncode)
|
||||
returncode = Curl_update_timer(multi);
|
||||
|
|
@ -3302,7 +3303,8 @@ static CURLMcode multi_socket(struct Curl_multi *multi,
|
|||
if(first)
|
||||
sigpipe_restore(&pipe_st);
|
||||
|
||||
*running_handles = (int)multi->num_alive;
|
||||
if(running_handles)
|
||||
*running_handles = (int)multi->num_alive;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue