--- libaitrpc/src/cli.c 2024/03/20 17:32:31 1.29 +++ libaitrpc/src/cli.c 2024/10/29 01:33:16 1.30 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.29 2024/03/20 17:32:31 misho Exp $ +* $Id: cli.c,v 1.30 2024/10/29 01:33:16 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -650,8 +650,10 @@ rpc_cli_ping(rpc_cli_t *cli) if (rpc_cli_execCall(cli, RPC_REPLY, CALL_SRVPING, NULL, &arr)) return -1; - else + else if (array_Data(arr) && array(arr, 0, ait_val_t*)) ret = AIT_GET_U16(array(arr, 0, ait_val_t*)); + else + ret = -1; rpc_cli_freeCall(&arr); return ret;