From 58d4a14046d992487c5873a679125f8257f0ed79 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 13 May 2016 14:12:22 -0700 Subject: [PATCH] Remove double call to NetVConnection->do_io_read. Signed-off-by: David Calavera --- proxy/http/HttpSM.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index 9221aa836fd..e0828517d2a 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -583,9 +583,9 @@ HttpSM::state_read_client_request_header(int event, void *data) return 0; // check to see if there was an EOS received on the SSL connection - SSLNetVConnection *ssl_vc = dynamic_cast(ua_session->get_netvc()); + SSLNetVConnection *ssl_vc = dynamic_cast(netvc); if (ssl_vc && ssl_vc->isEosRcvd()) { - DebugSM("http", "EOS for ssl vc %p at read_first_btye state", ua_session->get_netvc()); + DebugSM("http", "EOS for ssl vc %p at read_first_btye state", netvc); event = VC_EVENT_EOS; } switch (event) { @@ -659,8 +659,8 @@ HttpSM::state_read_client_request_header(int event, void *data) // Turn off read eventing until we get the // blind tunnel infrastructure set up - ua_session->get_netvc()->do_io_read(this, 0, NULL); - netvc->do_io_read(this, 0, NULL); + if (netvc) + netvc->do_io_read(this, 0, NULL); /* establish blind tunnel */ setup_blind_tunnel_port();