diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-10-03 23:40:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-10-03 23:40:57 +0200 |
commit | b9a34e818e9ada06a057459270340ea9a4799c01 (patch) | |
tree | 0d1ed28a73876fa6248d346e4d0833c67b58655c /lib/pipeline.c | |
parent | d57f7d586bcdbc49cc8a083266cd0baaf6d8b18e (diff) | |
download | curl-b9a34e818e9ada06a057459270340ea9a4799c01.tar.gz |
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.
Diffstat (limited to 'lib/pipeline.c')
-rw-r--r-- | lib/pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pipeline.c b/lib/pipeline.c index 8d2544b83..270df4192 100644 --- a/lib/pipeline.c +++ b/lib/pipeline.c @@ -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); |