From bf84081c352933f0c8b5f28cc6deb927f05b8835 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 30 Oct 2013 12:09:22 +0530 Subject: mgmt/glusterd: get the xlator object before accessing it Change-Id: I3404106a7e4fa7d32b1d5824e079040d2ed8d76b Signed-off-by: Raghavendra Bhat --- xlators/mgmt/glusterd/src/glusterd-snapshot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c index 33e48fb5f..d03546757 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -552,6 +552,8 @@ glusterd_snapshot_create_prevalidate (dict_t *dict, char **op_errstr, xlator_t *this = NULL; int ret = -1; + this = THIS; + ret = dict_get_int64 (dict, "volcount", &volume_count); if (ret) { gf_log (this->name, GF_LOG_ERROR, "failed to " -- cgit