Skip to content

Commit eb815fb

Browse files
sudheervzwoop
authored andcommitted
Make sure shutdown_cont_event isn't holding any garbage references.
As it seems like there could be a race condition because the handling of HTTP2_SESSION_EVENT_SHUTDOWN_INIT is going through the event loop again and therefore may come in after the Session and its associated contexts are already cleaned up thus causing an use-after-free possibility (cherry picked from commit b0685db)
1 parent da0c440 commit eb815fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proxy/http2/Http2ConnectionState.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class Http2ConnectionState : public Continuation
142142
{
143143
if (shutdown_cont_event) {
144144
shutdown_cont_event->cancel();
145+
shutdown_cont_event = nullptr;
145146
}
146147
cleanup_streams();
147148

0 commit comments

Comments
 (0)