Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2112dc78 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "RPC Binder: clearer errors for wrong transact type" into udc-dev am: 562e3b86

parents 0e57b3d1 562e3b86
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -796,7 +796,12 @@ status_t RpcState::processCommand(

    switch (command.command) {
        case RPC_COMMAND_TRANSACT:
            if (type != CommandType::ANY) return BAD_TYPE;
            if (type != CommandType::ANY) {
                ALOGE("CommandType %d, but got RPC command %d.", static_cast<int>(type),
                      command.command);
                (void)session->shutdownAndWait(false);
                return BAD_TYPE;
            }
            return processTransact(connection, session, command, std::move(ancillaryFds));
        case RPC_COMMAND_DEC_STRONG:
            return processDecStrong(connection, session, command);