Diff for /libaitrpc/src/cli.c between versions 1.6.2.2 and 1.6.2.3

version 1.6.2.2, 2012/03/14 13:29:11 version 1.6.2.3, 2012/03/15 00:44:24
Line 304  rpc_cli_execCall(rpc_cli_t *cli, const char *csModule, Line 304  rpc_cli_execCall(rpc_cli_t *cli, const char *csModule,
         struct tagRPCCall *rpc;          struct tagRPCCall *rpc;
         int ret = 0, wlen = sizeof(struct tagRPCCall);          int ret = 0, wlen = sizeof(struct tagRPCCall);
         struct timeval tv = { DEF_RPC_TIMEOUT, 0 };          struct timeval tv = { DEF_RPC_TIMEOUT, 0 };
        uint16_t tag, crc;        uint16_t tag;
         uint32_t hash;          uint32_t hash;
   
         if (!cli || !csFunc) {          if (!cli || !csFunc) {
Line 351  rpc_cli_execCall(rpc_cli_t *cli, const char *csModule, Line 351  rpc_cli_execCall(rpc_cli_t *cli, const char *csModule,
   
         /* calculate CRC */          /* calculate CRC */
         rpc->call_crc ^= rpc->call_crc;          rpc->call_crc ^= rpc->call_crc;
        rpc->call_crc = htons(crcFletcher16((u_short*) buf, ((wlen + 1) & ~1) / 2));        rpc->call_crc = htons(crcFletcher16((u_short*) buf, io_align(wlen, 1) / 2));
   
         if ((ret = send(cli->cli_sock, buf, wlen, 0)) == -1) {          if ((ret = send(cli->cli_sock, buf, wlen, 0)) == -1) {
                 LOGERR;                  LOGERR;

Removed from v.1.6.2.2  
changed lines
  Added in v.1.6.2.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>