1
0
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:
Daniel Stenberg 2014-10-03 23:40:57 +02:00
parent d57f7d586b
commit b9a34e818e

View File

@ -251,7 +251,7 @@ CURLMcode Curl_pipeline_set_site_blacklist(char **sites,
bool Curl_pipeline_server_blacklisted(struct SessionHandle *handle, bool Curl_pipeline_server_blacklisted(struct SessionHandle *handle,
char *server_name) char *server_name)
{ {
if(handle->multi) { if(handle->multi && server_name) {
struct curl_llist *blacklist = struct curl_llist *blacklist =
Curl_multi_pipelining_server_bl(handle->multi); Curl_multi_pipelining_server_bl(handle->multi);