diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-03-17 12:25:58 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-03-17 12:25:58 +0100 |
commit | 669bbb77a3354e8857f1e60b83500e3c038ec9e3 (patch) | |
tree | d3f5680594a755ebdeaea5946759052091ae328f | |
parent | 3e218236be3ad5655b19b1131d062512be811310 (diff) | |
download | curl-bagder/connnection-in-use.tar.gz |
fixup the ConnectionExists check for ->data == NULL casebagder/connnection-in-use
-rw-r--r-- | lib/url.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) { |