| Index: webrtc/p2p/base/port.cc
|
| diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
|
| index 9207c9d04260433736e51b409f54ab6059c682ed..0759ab3640ab598b018f7512031dc0ea41c31ccc 100644
|
| --- a/webrtc/p2p/base/port.cc
|
| +++ b/webrtc/p2p/base/port.cc
|
| @@ -351,7 +351,7 @@ bool Port::GetStunMessage(const char* data,
|
| // Parse the request message. If the packet is not a complete and correct
|
| // STUN message, then ignore it.
|
| rtc::scoped_ptr<IceMessage> stun_msg(new IceMessage());
|
| - rtc::ByteBuffer buf(data, size);
|
| + rtc::ByteBufferReader buf(data, size);
|
| if (!stun_msg->Read(&buf) || (buf.Length() > 0)) {
|
| return false;
|
| }
|
| @@ -573,7 +573,7 @@ void Port::SendBindingResponse(StunMessage* request,
|
| response.AddFingerprint();
|
|
|
| // Send the response message.
|
| - rtc::ByteBuffer buf;
|
| + rtc::ByteBufferWriter buf;
|
| response.Write(&buf);
|
| rtc::PacketOptions options(DefaultDscpValue());
|
| auto err = SendTo(buf.Data(), buf.Length(), addr, options, false);
|
| @@ -621,7 +621,7 @@ void Port::SendBindingErrorResponse(StunMessage* request,
|
| response.AddFingerprint();
|
|
|
| // Send the response message.
|
| - rtc::ByteBuffer buf;
|
| + rtc::ByteBufferWriter buf;
|
| response.Write(&buf);
|
| rtc::PacketOptions options(DefaultDscpValue());
|
| SendTo(buf.Data(), buf.Length(), addr, options, false);
|
|
|