--- libaitrpc/src/builtin.c 2012/05/17 08:42:32 1.7.2.7 +++ libaitrpc/src/builtin.c 2012/05/17 08:45:08 1.7.2.8 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: builtin.c,v 1.7.2.7 2012/05/17 08:42:32 misho Exp $ +* $Id: builtin.c,v 1.7.2.8 2012/05/17 08:45:08 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -160,7 +160,9 @@ rpcServerShutdown(rpc_func_t *call, struct tagRPCCall static int rpcServerPing(rpc_func_t *call, struct tagRPCCall *rpc, array_t *iv) { - AIT_SET_U16(io_getVars(RPC_FUNC_RETVARS(call), 0), ntohs(rpc->call_seq)); + if (rpc->call_req.flags == RPC_REPLY) + AIT_SET_U16(io_getVars(RPC_FUNC_RETVARS(call), 0), ntohs(rpc->call_seq)); + return 0; }