summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-03 23:40:57 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-03 23:40:57 +0200
commitb9a34e818e9ada06a057459270340ea9a4799c01 (patch)
tree0d1ed28a73876fa6248d346e4d0833c67b58655c
parentd57f7d586bcdbc49cc8a083266cd0baaf6d8b18e (diff)
downloadcurl-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.
-rw-r--r--lib/pipeline.c2
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);