Index: remoting/jingle_glue/chromium_socket_factory.cc |
diff --git a/remoting/jingle_glue/chromium_socket_factory.cc b/remoting/jingle_glue/chromium_socket_factory.cc |
index 24cda6ebe78ba84f75abd2f3457cbffc31daf627..c88833fa9bc167260254001c38a6d7ede0e63386 100644 |
--- a/remoting/jingle_glue/chromium_socket_factory.cc |
+++ b/remoting/jingle_glue/chromium_socket_factory.cc |
@@ -225,13 +225,13 @@ int UdpPacketSocket::SetOption(talk_base::Socket::Option option, int value) { |
return -1; |
case talk_base::Socket::OPT_RCVBUF: { |
- bool success = socket_->SetReceiveBufferSize(value); |
- return success ? 0 : -1; |
+ int net_error = socket_->SetReceiveBufferSize(value); |
+ return (net_error == net::OK) ? 0 : -1; |
} |
case talk_base::Socket::OPT_SNDBUF: { |
- bool success = socket_->SetSendBufferSize(value); |
- return success ? 0 : -1; |
+ int net_error = socket_->SetSendBufferSize(value); |
+ return (net_error == net::OK) ? 0 : -1; |
} |
case talk_base::Socket::OPT_NODELAY: |