Commit 3d2ef18a authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

spdycat: Fix error handling of spdylay_gzip_inflate()

parent 291cbc63
...@@ -422,7 +422,7 @@ void on_data_chunk_recv_callback ...@@ -422,7 +422,7 @@ void on_data_chunk_recv_callback
size_t outlen = MAX_OUTLEN; size_t outlen = MAX_OUTLEN;
size_t tlen = len; size_t tlen = len;
int rv = spdylay_gzip_inflate(req->inflater, out, &outlen, data, &tlen); int rv = spdylay_gzip_inflate(req->inflater, out, &outlen, data, &tlen);
if(rv == -1) { if(rv != 0) {
spdylay_submit_rst_stream(session, stream_id, SPDYLAY_INTERNAL_ERROR); spdylay_submit_rst_stream(session, stream_id, SPDYLAY_INTERNAL_ERROR);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment