aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-06-30 17:17:23 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-06-30 17:30:08 -0700
commit6721d4f0f18c71f5e4ab1cef904944185ed86b89 (patch)
tree6b3b3ff93eba1bb9290ca44e4cdfc67dd60286ae /src/csharp
parenta5596db1a53723789d7c90c23d9cbfbb8207f949 (diff)
Return success status of grpc_byte_buffer_reader
Diffstat (limited to 'src/csharp')
-rw-r--r--src/csharp/ext/grpc_csharp_ext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/csharp/ext/grpc_csharp_ext.c b/src/csharp/ext/grpc_csharp_ext.c
index 9b8d050ea5..4009748157 100644
--- a/src/csharp/ext/grpc_csharp_ext.c
+++ b/src/csharp/ext/grpc_csharp_ext.c
@@ -253,6 +253,7 @@ GPR_EXPORT intptr_t GPR_CALLTYPE grpcsharp_batch_context_recv_message_length(
if (!ctx->recv_message) {
return -1;
}
+ /* TODO(dgq): check the return value of grpc_byte_buffer_reader_init. */
grpc_byte_buffer_reader_init(&reader, ctx->recv_message);
return (intptr_t)grpc_byte_buffer_length(reader.buffer_out);
}
@@ -267,6 +268,7 @@ GPR_EXPORT void GPR_CALLTYPE grpcsharp_batch_context_recv_message_to_buffer(
gpr_slice slice;
size_t offset = 0;
+ /* TODO(dgq): check the return value of grpc_byte_buffer_reader_init. */
grpc_byte_buffer_reader_init(&reader, ctx->recv_message);
while (grpc_byte_buffer_reader_next(&reader, &slice)) {