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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc

Issue 804993008: nacl_io: accept now allows addr and len to be NULL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove incorrect tests Created 5 years, 12 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
« no previous file with comments | « native_client_sdk/src/AUTHORS ('k') | native_client_sdk/src/libraries/nacl_io/socket/tcp_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
index edaa202a1f1d58f7f7811581090b449955da3d3f..c7d721c77a45995408c21fc9fe61e372653022ba 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
@@ -1362,11 +1362,6 @@ int KernelProxy::poll(struct pollfd* fds, nfds_t nfds, int timeout) {
// Socket Functions
int KernelProxy::accept(int fd, struct sockaddr* addr, socklen_t* len) {
- if (NULL == addr || NULL == len) {
- errno = EFAULT;
- return -1;
- }
-
ScopedKernelHandle handle;
Error error = AcquireHandle(fd, &handle);
if (error) {
« no previous file with comments | « native_client_sdk/src/AUTHORS ('k') | native_client_sdk/src/libraries/nacl_io/socket/tcp_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698