diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc index 52b4dcd8f87..c6e16d596fd 100644 --- a/proxy/http2/Http2ConnectionState.cc +++ b/proxy/http2/Http2ConnectionState.cc @@ -950,7 +950,7 @@ Http2Stream * Http2ConnectionState::create_stream(Http2StreamId new_id, Http2Error &error) { // In half_close state, TS doesn't create new stream. Because GOAWAY frame is sent to client - if (ua_session && ua_session->get_half_close_flag()) { + if (ua_session->get_half_close_flag()) { error = Http2Error(Http2ErrorClass::HTTP2_ERROR_CLASS_STREAM, Http2ErrorCode::HTTP2_ERROR_REFUSED_STREAM, "refused to create new stream, because ua_session is in half_close state"); return nullptr;