Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1060)

Unified Diff: net/udp/udp_socket_win.cc

Issue 185553013: Standardize error reporting of IPEndPoint::ToSockAddr and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« net/socket/tcp_socket_libevent.cc ('K') | « net/udp/udp_socket_libevent.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/udp_socket_win.cc
===================================================================
--- net/udp/udp_socket_win.cc (revision 254575)
+++ net/udp/udp_socket_win.cc (working copy)
@@ -529,7 +529,7 @@
// Convert address.
if (address && result >= 0) {
if (!ReceiveAddressToIPEndpoint(address))
- result = ERR_FAILED;
+ result = ERR_ADDRESS_INVALID;
}
LogRead(result, buf->data());
return result;
@@ -558,7 +558,7 @@
storage.addr_len = 0;
} else {
if (!address->ToSockAddr(addr, &storage.addr_len)) {
- int result = ERR_FAILED;
+ int result = ERR_ADDRESS_INVALID;
LogWrite(result, NULL, NULL);
return result;
}
« net/socket/tcp_socket_libevent.cc ('K') | « net/udp/udp_socket_libevent.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698