| Index: webrtc/p2p/base/relayserver.cc
|
| diff --git a/webrtc/p2p/base/relayserver.cc b/webrtc/p2p/base/relayserver.cc
|
| index aad0070d345a190bde89f9fbdd1b0c735491806c..e098cbcd843b5f5e0d99c2513a9e3dd7c5d704d8 100644
|
| --- a/webrtc/p2p/base/relayserver.cc
|
| +++ b/webrtc/p2p/base/relayserver.cc
|
| @@ -46,7 +46,7 @@ void Send(rtc::AsyncPacketSocket* socket, const char* bytes, size_t size,
|
| void SendStun(const StunMessage& msg,
|
| rtc::AsyncPacketSocket* socket,
|
| const rtc::SocketAddress& addr) {
|
| - rtc::ByteBuffer buf;
|
| + rtc::ByteBufferWriter buf;
|
| msg.Write(&buf);
|
| Send(socket, buf.Data(), buf.Length(), addr);
|
| }
|
| @@ -249,7 +249,7 @@ void RelayServer::OnExternalPacket(
|
| // The first packet should always be a STUN / TURN packet. If it isn't, then
|
| // we should just ignore this packet.
|
| RelayMessage msg;
|
| - rtc::ByteBuffer buf(bytes, size);
|
| + rtc::ByteBufferReader buf(bytes, size);
|
| if (!msg.Read(&buf)) {
|
| LOG(LS_WARNING) << "Dropping packet: first packet not STUN";
|
| return;
|
| @@ -298,7 +298,7 @@ bool RelayServer::HandleStun(
|
| StunMessage* msg) {
|
|
|
| // Parse this into a stun message. Eat the message if this fails.
|
| - rtc::ByteBuffer buf(bytes, size);
|
| + rtc::ByteBufferReader buf(bytes, size);
|
| if (!msg->Read(&buf)) {
|
| return false;
|
| }
|
|
|