Diff for /libaitrpc/src/cli.c between versions 1.19.6.2 and 1.20

version 1.19.6.2, 2013/11/15 09:18:38 version 1.20, 2013/11/15 09:55:53
Line 295  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res Line 295  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
         if (!pkt) {          if (!pkt) {
                 rpc_SetErr(EINVAL, "Invalid argument(s)!");                  rpc_SetErr(EINVAL, "Invalid argument(s)!");
                 return -1;                  return -1;
        } else        } else {
                 buf = AIT_GET_BUF(pkt);                  buf = AIT_GET_BUF(pkt);
                   rpc = (struct tagRPCCall*) buf;
           }
   
         /* reply from RPC server */          /* reply from RPC server */
         do {          do {
Line 316  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res Line 318  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
                         }                          }
   
                         /* calc estimated length */                          /* calc estimated length */
                         rpc = (struct tagRPCCall*) buf;  
                         estlen = ntohl(rpc->call_len);                          estlen = ntohl(rpc->call_len);
                         if (estlen > AIT_LEN(pkt))                          if (estlen > AIT_LEN(pkt))
                                 AIT_RE_BUF(pkt, estlen);                                  AIT_RE_BUF(pkt, estlen);
                         buf = AIT_GET_BUF(pkt);                          buf = AIT_GET_BUF(pkt);
                         blen = estlen;  
                         rpc = (struct tagRPCCall*) buf;                          rpc = (struct tagRPCCall*) buf;
                           blen = estlen;
                         continue;                          continue;
                 }                  }
   

Removed from v.1.19.6.2  
changed lines
  Added in v.1.20


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