mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Curl_pipeline_server_blacklisted: handle a NULL server name
Coverity CID 1215284. The server name is extracted with Curl_copy_header_value() and passed in to this function, and copy_header_value can actually can fail and return NULL.
This commit is contained in:
parent
d57f7d586b
commit
b9a34e818e
@ -251,7 +251,7 @@ CURLMcode Curl_pipeline_set_site_blacklist(char **sites,
|
||||
bool Curl_pipeline_server_blacklisted(struct SessionHandle *handle,
|
||||
char *server_name)
|
||||
{
|
||||
if(handle->multi) {
|
||||
if(handle->multi && server_name) {
|
||||
struct curl_llist *blacklist =
|
||||
Curl_multi_pipelining_server_bl(handle->multi);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user