spdycat: Fix error handling of spdylay_gzip_inflate()
This commit is contained in:
parent
291cbc639b
commit
3d2ef18afb
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue