diff options
Diffstat (limited to 'xlators/cluster/dht/src/dht-helper.c')
| -rw-r--r-- | xlators/cluster/dht/src/dht-helper.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c index 920a7aabc..611de19e4 100644 --- a/xlators/cluster/dht/src/dht-helper.c +++ b/xlators/cluster/dht/src/dht-helper.c @@ -80,7 +80,7 @@ dht_filter_loc_subvol_key (xlator_t *this, loc_t *loc, loc_t *new_loc,          int            ret       = 0; /* not found */          /* Why do other tasks if first required 'char' itself is not there */ -        if (!loc->name || !strchr (loc->name, '@')) +        if (!new_loc || !loc || !loc->name || !strchr (loc->name, '@'))                  goto out;          trav = this->children;  | 
