aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/surface
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-22 14:54:10 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-11-22 14:54:10 -0800
commitb0f3bca0ef9ee8c1ea6bb2bde7281a1df5914216 (patch)
tree6fc1fcbbd883b7fe550d92a8f3c58fc3d80dc29f /src/core/lib/surface
parenta7d37a371a965470c917ccf50eb858f66bcc6eaa (diff)
Everything compiles...
Diffstat (limited to 'src/core/lib/surface')
-rw-r--r--src/core/lib/surface/call.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/surface/call.c b/src/core/lib/surface/call.c
index 4e1ca22cb8..a0bcac22a3 100644
--- a/src/core/lib/surface/call.c
+++ b/src/core/lib/surface/call.c
@@ -940,8 +940,9 @@ static void publish_app_metadata(grpc_call *call, grpc_metadata_batch *b,
grpc_metadata_array *dest;
grpc_metadata *mdusr;
dest = call->buffered_metadata[is_trailing];
- if (dest->count + b->count > dest->capacity) {
- dest->capacity = GPR_MAX(dest->capacity + b->count, dest->capacity * 3 / 2);
+ if (dest->count + b->list.count > dest->capacity) {
+ dest->capacity =
+ GPR_MAX(dest->capacity + b->list.count, dest->capacity * 3 / 2);
dest->metadata =
gpr_realloc(dest->metadata, sizeof(grpc_metadata) * dest->capacity);
}