multi_done: if multiplexed, make conn->data point to another transfer 66/244866/1 submit/tizen_base/20200925.082411
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 25 Sep 2020 08:06:27 +0000 (17:06 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 25 Sep 2020 08:06:29 +0000 (17:06 +0900)
commitdb3449602344009f13c64ed5744718098343c003
tree53895bb473643f40f581af84566f927659941e9d
parent3ca2e009edfcc054faf5aacb4d09035a81108281
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
https://github.com/curl/curl/issues/4845

Change-Id: I597f1538c7ff646a13d24ab547437fd2dc037f00
lib/multi.c
lib/url.c