summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
-rw-r--r--xlators/cluster/dht/src/dht-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index fb149e7635e..16bb2c9cc7d 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -75,7 +75,7 @@ dht_aggregate (dict_t *this, char *key, data_t *value, void *data)
/* compare user xattrs only */
if (!strncmp (key, "user.", strlen ("user."))) {
ret = dict_lookup (dst, key, &data_pair);
- if (!ret && data) {
+ if (!ret && data_pair && value) {
ret = is_data_equal (data_pair->value, value);
if (!ret)
gf_log ("dht", GF_LOG_WARNING,