--- libaitrpc/src/cli.c 2015/05/18 14:50:12 1.24.2.3 +++ libaitrpc/src/cli.c 2015/06/28 21:40:45 1.25.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.24.2.3 2015/05/18 14:50:12 misho Exp $ +* $Id: cli.c,v 1.25.2.1 2015/06/28 21:40:45 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -359,6 +359,8 @@ rpc_pkt_Receive(int sock, int type, sockaddr_t * __res if (ret > 0) { rpc = (struct tagRPCCall*) AIT_GET_BUF(pkt); + if (ret < ntohl(rpc->call_len)) + continue; /* check for loop request */ if (!(rpc->call_io & RPC_ACK)) @@ -368,7 +370,6 @@ rpc_pkt_Receive(int sock, int type, sockaddr_t * __res continue; } } while (ret < 1); - printf("================================== packet end seq=%u ============\n", seq); return ret; }