From faf9099bb50d4d2c1a9fe8d3232d541b3f68bc58 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 3 Jan 2012 16:05:51 -0800 Subject: cluster/distribute: dht_aggregate() fix a logic error before xattr comparisons Change-Id: I20f015263bed9851225005d5f41a5d518bd22592 BUG: 769691 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.com/2557 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- libglusterfs/src/dict.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libglusterfs/src/dict.c') diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index 833f117fc..fd9dd1cd7 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -108,9 +108,12 @@ int32_t is_data_equal (data_t *one, data_t *two) { - /* LOG-TODO */ - if (!one || !two || !one->data || !two->data) - return 1; + if (!one || !two || !one->data || !two->data) { + gf_log_callingfn ("dict", GF_LOG_ERROR, + "input arguments are provided " + "with value data_t as NULL"); + return -1; + } if (one == two) return 1; -- cgit