Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/proxy/http/HttpClientSession.h b/proxy/http/HttpClientSession.h
- index 5c5ae53..261db0d 100644
- --- a/proxy/http/HttpClientSession.h
- +++ b/proxy/http/HttpClientSession.h
- @@ -128,6 +128,12 @@ public:
- upgrade_to_h2c = true;
- }
- + void
- + release_current_reader()
- + {
- + current_reader = NULL;
- + }
- +
- private:
- HttpClientSession(HttpClientSession &);
- diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
- index c9b1322..5204a31 100644
- --- a/proxy/http/HttpSM.cc
- +++ b/proxy/http/HttpSM.cc
- @@ -6581,6 +6581,10 @@ HttpSM::kill_this()
- // Not keep alive, go ahead and shut it down
- ua_session->do_io_close();
- }
- + // reset the ua_session's reader (HttpSM) to prevent double free
- + // in HttpClientSession::destroy()
- + ua_session->release_current_reader();
- +
- ua_session = NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement