diff options
author | Craig Tiller <ctiller@google.com> | 2016-03-25 13:37:53 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-03-25 13:37:53 -0700 |
commit | b7b20fee9649c57df0aef8cb54f85465312bab80 (patch) | |
tree | cc81fb2d27594454e17cb023355a71c3c456f224 /include/grpc++/support | |
parent | f29d1f77999a911a1ef2f4255cb286f860ba74ca (diff) | |
parent | bceec94ea4fc5f0085d81235d8e1c06798dc341a (diff) |
Merge github.com:grpc/grpc into clang_fmt_upd
Diffstat (limited to 'include/grpc++/support')
-rw-r--r-- | include/grpc++/support/byte_buffer.h | 4 |
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; } }; |