--- libaitrpc/src/blob.c 2010/07/08 11:16:47 1.1.2.14 +++ libaitrpc/src/blob.c 2011/03/15 15:13:22 1.1.2.15 @@ -265,7 +265,7 @@ rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, rpc_val_t } if (hdr.hdr_cmd != error) { if (hdr.hdr_len != var->val_len) { - rpc_SetErr(EBADMSG, "Error:: Bad return length packet ...\n"); + rpc_SetErr(ECANCELED, "Error:: Bad return length packet ...\n"); return -1; } @@ -356,7 +356,7 @@ rpc_cli_recvBLOB(rpc_cli_t * __restrict cli, rpc_val_t } if (hdr.hdr_cmd != error) { if (hdr.hdr_len != var->val_len) { - rpc_SetErr(EBADMSG, "Error:: Bad return length packet ...\n"); + rpc_SetErr(ECANCELED, "Error:: Bad return length packet ...\n"); free(*data); *data = NULL; return -1;