summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/dht/src')
-rw-r--r--xlators/cluster/dht/src/dht-selfheal.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c
index faf5ddb8aa3..78d8b6a5f6c 100644
--- a/xlators/cluster/dht/src/dht-selfheal.c
+++ b/xlators/cluster/dht/src/dht-selfheal.c
@@ -233,7 +233,9 @@ unlock:
return 0;
err:
- local->refresh_layout_unlock (frame, this, -1, 1);
+ if (local) {
+ local->refresh_layout_unlock (frame, this, -1, 1);
+ }
return 0;
}
@@ -309,7 +311,9 @@ dht_refresh_layout (call_frame_t *frame)
return 0;
out:
- local->refresh_layout_unlock (frame, this, -1, 1);
+ if (local) {
+ local->refresh_layout_unlock (frame, this, -1, 1);
+ }
return 0;
}