aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/support
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-03-25 13:37:53 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-03-25 13:37:53 -0700
commitb7b20fee9649c57df0aef8cb54f85465312bab80 (patch)
treecc81fb2d27594454e17cb023355a71c3c456f224 /include/grpc++/support
parentf29d1f77999a911a1ef2f4255cb286f860ba74ca (diff)
parentbceec94ea4fc5f0085d81235d8e1c06798dc341a (diff)
Merge github.com:grpc/grpc into clang_fmt_upd
Diffstat (limited to 'include/grpc++/support')
-rw-r--r--include/grpc++/support/byte_buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/grpc++/support/byte_buffer.h b/include/grpc++/support/byte_buffer.h
index 82591a88ef..27307f8fcd 100644
--- a/include/grpc++/support/byte_buffer.h
+++ b/include/grpc++/support/byte_buffer.h
@@ -99,8 +99,8 @@ class SerializationTraits<ByteBuffer, void> {
}
static Status Serialize(const ByteBuffer& source, grpc_byte_buffer** buffer,
bool* own_buffer) {
- *buffer = source.buffer();
- *own_buffer = false;
+ *buffer = grpc_byte_buffer_copy(source.buffer());
+ *own_buffer = true;
return Status::OK;
}
};