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
diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp
index 3599427..a8f3fa8 100644
--- a/libs/binder/RpcServer.cpp
+++ b/libs/binder/RpcServer.cpp
@@ -313,7 +313,7 @@
}
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;
}