summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 2d32f69580b..e7ae5c2b002 100644
--- a/xlators/cluster/dht/src/dht-helper.c
+++ b/xlators/cluster/dht/src/dht-helper.c
@@ -1728,8 +1728,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);