summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-10-07 18:39:42 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-10-09 17:42:11 -0700
commit069661f8497bbe459cb0a195f115d84c2ebd37aa (patch)
treee7ba9ef2d8129cfca8fd95bee032bef0f83e8c15 /glusterfsd
parentfe3c6f0fa2bf8590f4c540fd9561aeeec1243361 (diff)
glusterfsd: Initialize ctx, cmd_args
Change-Id: I9c71ae264665b7bba609c7f86cf42a52a6b47260 BUG: 1269696 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/12311 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index d7e87728e74..81c18ffc715 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -2120,6 +2120,9 @@ mgmt_pmap_signin_cbk (struct rpc_req *req, struct iovec *iov, int count,
char brick_name[PATH_MAX] = {0,};
frame = myframe;
+ ctx = glusterfsd_ctx;
+ cmd_args = &ctx->cmd_args;
+
if (-1 == req->rpc_status) {
ret = -1;
@@ -2143,9 +2146,6 @@ mgmt_pmap_signin_cbk (struct rpc_req *req, struct iovec *iov, int count,
goto out;
}
- ctx = glusterfsd_ctx;
- cmd_args = &ctx->cmd_args;
-
if (!cmd_args->brick_port2) {
/* We are done with signin process */
emancipate_ret = 0;