Skip to content

Commit

Permalink
Curl_pipeline_server_blacklisted: handle a NULL server name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bagder committed Oct 3, 2014
1 parent d57f7d5 commit b9a34e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pipeline.c
Expand Up @@ -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);

Expand Down

0 comments on commit b9a34e8

Please sign in to comment.