From 61905d64188f2db8e33bfe7bc4c499844a6b4b3a Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Wed, 19 Dec 2012 18:03:42 +0530 Subject: glusterd: Add GF_ASSERT check in glusterd volume op handlers Change-Id: Iea6ac1e612812ba8ffc4b60899a9e574a3b09ea6 BUG: 873549 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/4346 Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Vijay Bellur Tested-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-ops.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index c70556a58..6f933e681 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -235,6 +235,7 @@ glusterd_handle_cli_start_volume (rpcsvc_request_t *req) xlator_t *this = NULL; this = THIS; + GF_ASSERT (this); GF_ASSERT (req); ret = xdr_to_generic (req->msg[0], &cli_req, (xdrproc_t)xdr_gf_cli_req); @@ -303,6 +304,7 @@ glusterd_handle_cli_stop_volume (rpcsvc_request_t *req) char err_str[2048] = {0,}; this = THIS; + GF_ASSERT (this); GF_ASSERT (req); ret = xdr_to_generic (req->msg[0], &cli_req, (xdrproc_t)xdr_gf_cli_req); @@ -374,6 +376,7 @@ glusterd_handle_cli_delete_volume (rpcsvc_request_t *req) xlator_t *this = NULL; this = THIS; + GF_ASSERT (this); GF_ASSERT (req); @@ -457,6 +460,7 @@ glusterd_handle_cli_heal_volume (rpcsvc_request_t *req) } this = THIS; + GF_ASSERT (this); if (cli_req.dict.dict_len) { /* Unserialize the dictionary */ @@ -538,6 +542,7 @@ glusterd_handle_cli_statedump_volume (rpcsvc_request_t *req) xlator_t *this = NULL; this = THIS; + GF_ASSERT (this); GF_ASSERT (req); -- cgit