Fix onWritable calling markDone resulting in potential heap-use-after-free

This commit is contained in:
Alex Hultman
2022-05-02 01:38:11 +02:00
parent 44af0e5710
commit e4c6fbf8de
3 changed files with 33 additions and 13 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ private:
/* We expect the developer to return whether or not write was successful (true).
* If write was never called, the developer should still return true so that we may drain. */
bool success = httpResponseData->onWritable(httpResponseData->offset);
bool success = httpResponseData->callOnWritable(httpResponseData->offset);
/* The developer indicated that their onWritable failed. */
if (!success) {