aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/channel/compress_filter.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-10-09 17:07:56 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-10-09 17:07:56 -0700
commit2b15f1e25ae4aec6ef0de92b7e99e50188eb6438 (patch)
tree4dd4838255a12fd477a00f15062c8b7f8d034ebb /src/core/channel/compress_filter.c
parent8e30e25b14acf9e0fcd62eae96ad1c57280787f2 (diff)
parentb733c74ffce5f6d58a69060c00f23cc6c13e506a (diff)
Merge github.com:grpc/grpc into latent-see
Diffstat (limited to 'src/core/channel/compress_filter.c')
-rw-r--r--src/core/channel/compress_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/channel/compress_filter.c b/src/core/channel/compress_filter.c
index 477e607596..20b5084044 100644
--- a/src/core/channel/compress_filter.c
+++ b/src/core/channel/compress_filter.c
@@ -243,7 +243,7 @@ static void process_send_ops(grpc_call_element *elem,
GPR_ASSERT(calld->remaining_slice_bytes > 0);
/* Increase input ref count, gpr_slice_buffer_add takes ownership. */
gpr_slice_buffer_add(&calld->slices, gpr_slice_ref(sop->data.slice));
- GPR_ASSERT(GPR_SLICE_LENGTH(sop->data.slice) >=
+ GPR_ASSERT(GPR_SLICE_LENGTH(sop->data.slice) <=
calld->remaining_slice_bytes);
calld->remaining_slice_bytes -=
(gpr_uint32)GPR_SLICE_LENGTH(sop->data.slice);