From 6522f059eeec1b9962525b61c4c6640ae1afe85c Mon Sep 17 00:00:00 2001 From: arao Date: Tue, 10 Feb 2015 02:51:43 +0530 Subject: features/changelog: Fixing Deference after null check CID: 1124481 The goto label 'out' was trying to dereference a pointer which might be null, hence a check on not null is made before the use of it. Change-Id: I813e523207b8218a7a28c2b3ac36a8e472e36c89 BUG: 789278 Signed-off-by: arao Reviewed-on: http://review.gluster.org/9617 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/changelog/src/changelog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c index 6c7a0a80f17..1c7166e52b5 100644 --- a/xlators/features/changelog/src/changelog.c +++ b/xlators/features/changelog/src/changelog.c @@ -2376,7 +2376,7 @@ reconfigure (xlator_t *this, dict_t *options) } else { gf_log (this->name, GF_LOG_DEBUG, "changelog reconfigured"); - if (active_now) + if (active_now && priv) priv->active = _gf_true; } -- cgit