summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib
diff options
context:
space:
mode:
authorGaurav <gaurav@gluster.com>2011-02-28 22:40:30 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-03-01 02:06:00 -0800
commit731f07378bc0dce305fd3625e9bd4846096a97e3 (patch)
tree419fc2e1643e700762dc2fbcfa39d93cd8e62c32 /rpc/rpc-lib
parent972836043ea378cafb9639f2db9f04652955eef1 (diff)
RPC : Sending error reply on decodong failure.
Signed-off-by: Gaurav <gaurav@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2435 (Not able to send error reply in rpcsvc.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2435
Diffstat (limited to 'rpc/rpc-lib')
-rw-r--r--rpc/rpc-lib/src/rpcsvc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c
index 0f198e54f33..d949677c35e 100644
--- a/rpc/rpc-lib/src/rpcsvc.c
+++ b/rpc/rpc-lib/src/rpcsvc.c
@@ -877,6 +877,8 @@ rpcsvc_request_create (rpcsvc_t *svc, rpc_transport_t *trans,
if (ret == -1) {
gf_log (GF_RPCSVC, GF_LOG_ERROR, "RPC call decoding failed");
rpcsvc_request_seterr (req, GARBAGE_ARGS);
+ req->trans = rpc_transport_ref (trans);
+ req->svc = svc;
goto err;
}