diff --git a/src/shrpx_spdy_upstream.cc b/src/shrpx_spdy_upstream.cc index b19e46a6..41264cfb 100644 --- a/src/shrpx_spdy_upstream.cc +++ b/src/shrpx_spdy_upstream.cc @@ -170,7 +170,9 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type, } if (downstream->index_request_headers() != 0) { - upstream->error_reply(downstream, 400); + if (upstream->error_reply(downstream, 400) != 0) { + ULOG(FATAL, upstream) << "error_reply failed"; + } return; }