From 3d2ef18afbd2512cc7d10893b8ed803ba7fb22dc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 14 Feb 2013 21:12:16 +0900 Subject: [PATCH] spdycat: Fix error handling of spdylay_gzip_inflate() --- src/spdycat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spdycat.cc b/src/spdycat.cc index a79f2b37..e0035d3d 100644 --- a/src/spdycat.cc +++ b/src/spdycat.cc @@ -422,7 +422,7 @@ void on_data_chunk_recv_callback size_t outlen = MAX_OUTLEN; size_t tlen = len; 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); break; }