| Index: cloud_print/gcp20/prototype/dns_sd_server.cc
|
| diff --git a/cloud_print/gcp20/prototype/dns_sd_server.cc b/cloud_print/gcp20/prototype/dns_sd_server.cc
|
| index 2d2716b63dd4cd7f766843649a00c2fcb0bc9969..60c955e09e8ab29c752e824b816094112507a87a 100644
|
| --- a/cloud_print/gcp20/prototype/dns_sd_server.cc
|
| +++ b/cloud_print/gcp20/prototype/dns_sd_server.cc
|
| @@ -241,10 +241,12 @@ void DnsSdServer::DoLoop(int rv) {
|
| // TODO(maksymb): Check what happened if buffer will be overflowed
|
| do {
|
| if (rv > 0)
|
| - ProcessMessage(rv, recv_buf_);
|
| - rv = socket_->RecvFrom(recv_buf_, recv_buf_->size(), &recv_address_,
|
| - base::Bind(&DnsSdServer::DoLoop,
|
| - base::Unretained(this)));
|
| + ProcessMessage(rv, recv_buf_.get());
|
| + rv = socket_->RecvFrom(
|
| + recv_buf_.get(),
|
| + recv_buf_->size(),
|
| + &recv_address_,
|
| + base::Bind(&DnsSdServer::DoLoop, base::Unretained(this)));
|
| } while (rv > 0);
|
|
|
| // TODO(maksymb): Add handler for errors
|
|
|