Patchwork [BUG:2436] NFS : Send error reply on rpc decoding failure.

login
register
Submitter Gaurav
Date 2011-03-01 04:10:46
Message ID <1298952646-13661-1-git-send-email-gaurav@gluster.com>
Download mbox | patch
Permalink /patch/6293/
State Accepted
Delegated to: Anand Avati
Headers show

Comments

Gaurav - 2011-03-01 04:10:46
From: Gaurav <gaurav@gluster.com>


Signed-off-by: Gaurav <gaurav@gluster.com>
---
 xlators/nfs/lib/src/rpcsvc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c
index ff3c1fa..f75fe4c 100644
--- a/xlators/nfs/lib/src/rpcsvc.c
+++ b/xlators/nfs/lib/src/rpcsvc.c
@@ -1909,6 +1909,7 @@  nfs_rpcsvc_request_create (rpcsvc_conn_t *conn)
         if (ret == -1) {
                 gf_log (GF_RPCSVC, GF_LOG_ERROR, "RPC call decoding failed");
                 nfs_rpcsvc_request_seterr (req, GARBAGE_ARGS);
+                req->conn = conn;
                 goto err;
         }