summaryrefslogtreecommitdiff
path: root/libs/binder/RpcServer.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-06-12 00:35:58 +0000
committer Steven Moreland <smoreland@google.com> 2021-06-12 00:35:58 +0000
commitb86e26b735ee912acf23c670398f2d88fdfe5994 (patch)
tree91c17d659def0f38be52392b8079098f671f514d /libs/binder/RpcServer.cpp
parent01a6bad2e1441c4ec89d6157dc663cb43c6d9cf9 (diff)
libbinder: RPC skip init on /dev/null
This started breaking the fuzzer, since we can't do a socket operation on /dev/null. Bug: N/A # yet! Test: fuzzer no longer crashes Change-Id: I881f63b85108ff488cb5798b1f0b96629b592329
Diffstat (limited to 'libs/binder/RpcServer.cpp')
-rw-r--r--libs/binder/RpcServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp
index 3599427f5a..a8f3fa8f6f 100644
--- a/libs/binder/RpcServer.cpp
+++ b/libs/binder/RpcServer.cpp
@@ -313,7 +313,7 @@ void RpcServer::establishConnection(sp<RpcServer>&& server, base::unique_fd clie
}
if (reverse) {
- LOG_ALWAYS_FATAL_IF(!session->addOutgoingConnection(std::move(clientFd)),
+ LOG_ALWAYS_FATAL_IF(!session->addOutgoingConnection(std::move(clientFd), true),
"server state must already be initialized");
return;
}