--- libaitrpc/src/builtin.c 2013/08/22 15:31:09 1.16 +++ libaitrpc/src/builtin.c 2013/09/05 00:27:10 1.16.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: builtin.c,v 1.16 2013/08/22 15:31:09 misho Exp $ +* $Id: builtin.c,v 1.16.4.1 2013/09/05 00:27:10 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -159,7 +159,7 @@ rpcServerShutdown(rpc_cli_t *cli, struct tagRPCCall *r static int rpcServerPing(rpc_cli_t *cli, struct tagRPCCall *rpc, array_t *iv) { - if (rpc->call_req.flags == RPC_REPLY) + if (ntohl((u_long) rpc->call_req.flags) == RPC_REPLY) AIT_SET_U16(ait_getVars(&RPC_RETVARS(cli), 0), random() % USHRT_MAX); return 0; }