Fix a logic error.

This commit is contained in:
Alexei Svitkine 2012-07-05 22:52:39 -04:00
parent 68e71eb93e
commit e1d132083b

View File

@ -960,7 +960,7 @@ int rpc_dispatch(rpc_connection_t *connection)
rpc_message_init(&message, connection);
int32_t method, value, ret = RPC_MESSAGE_FAILURE;
if (rpc_message_recv_int32(&message, &value) != RPC_ERROR_NO_ERROR &&
if (rpc_message_recv_int32(&message, &value) != RPC_ERROR_NO_ERROR ||
value != RPC_MESSAGE_START)
return ret;