summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c
index c436c8686b8..64d6f74acfd 100644
--- a/xlators/cluster/dht/src/dht-helper.c
+++ b/xlators/cluster/dht/src/dht-helper.c
@@ -1685,8 +1685,8 @@ dht_lock_request_cmp (const void *val1, const void *val2)
dht_lock_t *lock2 = NULL;
int ret = 0;
- lock1 = (dht_lock_t *)val1;
- lock2 = (dht_lock_t *)val2;
+ lock1 = *(dht_lock_t **)val1;
+ lock2 = *(dht_lock_t **)val2;
GF_VALIDATE_OR_GOTO ("dht-locks", lock1, out);
GF_VALIDATE_OR_GOTO ("dht-locks", lock2, out);