From 235ae3528d4e8a914fc208ff05580336c865727c Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 23 Feb 2017 21:35:45 +0100 Subject: dnt: Fix crash when showing the error message Since this is NULL, this->name would crash the daemon if a incorrect rebal_entry is passed. Found by coverity scan. Change-Id: Ieddf1ef097d13711ab8ec9cd24e125914d2e7245 BUG: 789278 Signed-off-by: Michael Scherer Reviewed-on: https://review.gluster.org/16740 Smoke: Gluster Build System Reviewed-by: Shyamsundar Ranganathan Tested-by: Michael Scherer NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- xlators/cluster/dht/src/dht-rebalance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 41a50cff3cc..c851266588d 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -2115,7 +2115,7 @@ gf_defrag_migrate_single_file (void *opaque) rebal_entry = (struct dht_container *)opaque; if (!rebal_entry) { - gf_log (this->name, GF_LOG_ERROR, "rebal_entry is NULL"); + gf_log ("DHT", GF_LOG_ERROR, "rebal_entry is NULL"); ret = -1; goto out; } -- cgit