summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-03-17 12:25:58 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-03-17 12:25:58 +0100
commit669bbb77a3354e8857f1e60b83500e3c038ec9e3 (patch)
treed3f5680594a755ebdeaea5946759052091ae328f
parent3e218236be3ad5655b19b1131d062512be811310 (diff)
downloadcurl-bagder/connnection-in-use.tar.gz
fixup the ConnectionExists check for ->data == NULL casebagder/connnection-in-use
-rw-r--r--lib/url.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index 63fd3c5cd..b1c4ae76c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1292,9 +1292,10 @@ ConnectionExists(struct Curl_easy *data,
already in use so we skip it */
continue;
- if(CONN_INUSE(check) && (check->data->multi != needle->data->multi))
- /* this could be subject for pipeline/multiplex use, but only
- if they belong to the same multi handle */
+ if(CONN_INUSE(check) && check->data &&
+ (check->data->multi != needle->data->multi))
+ /* this could be subject for pipeline/multiplex use, but only if they
+ belong to the same multi handle */
continue;
if(needle->localdev || needle->localport) {