1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-22 07:38:52 -05:00

spdycat: Fix error handling of spdylay_gzip_inflate()

This commit is contained in:
Tatsuhiro Tsujikawa 2013-02-14 21:12:16 +09:00
parent 291cbc639b
commit 3d2ef18afb

View File

@ -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;
} }