diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-01-27 22:50:33 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-01-28 13:00:41 +0100 |
commit | db9af34634e36d34067fff506915dcf7a783a1e2 (patch) | |
tree | 2235a562af9541a8998474d645862f3c2b7faed2 /lib/url.c | |
parent | 8b7fff3311fd0caaf9e385bafedeb13f6ac2e161 (diff) | |
download | curl-db9af34634e36d34067fff506915dcf7a783a1e2.tar.gz |
multi_done: if multiplexed, make conn->data point to another transfer
... since the current transfer is being killed. Setting to NULL is
wrong, leaving it pointing to 'data' is wrong since that handle might be
about to get freed.
Fixes #4845
Closes #4858
Reported-by: dmitrmax on github
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1213,6 +1213,8 @@ ConnectionExists(struct Curl_easy *data, } } + DEBUGASSERT(!check->data || GOOD_EASY_HANDLE(check->data)); + if(!canmultiplex && check->data) /* this request can't be multiplexed but the checked connection is already in use so we skip it */ |