diff options
| -rw-r--r-- | xlators/cluster/dht/src/dht-selfheal.c | 2 | ||||
| -rw-r--r-- | xlators/storage/posix/src/posix.c | 3 | 
2 files changed, 4 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index ddd043dc8a4..d9f2b8b2776 100644 --- a/xlators/cluster/dht/src/dht-selfheal.c +++ b/xlators/cluster/dht/src/dht-selfheal.c @@ -346,7 +346,7 @@ dht_selfheal_dir_mkdir (call_frame_t *frame, loc_t *loc,          }          if (!dict) -                gf_log (this->name, GF_LOG_DEBUG, +                gf_log (this->name, GF_LOG_WARNING,                          "dict is NULL, need to make sure gfid's are same");          for (i = 0; i < layout->cnt; i++) { diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index b3ed23a4583..785d16ec4bc 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -516,6 +516,9 @@ posix_entry_create_xattr_set (xlator_t *this, const char *path,          data_pair_t *trav = NULL;          int ret = -1; +        if (!dict) +                goto out; +          trav = dict->members_list;          while (trav) {                  if (!strcmp (GFID_XATTR_KEY, trav->key) ||  | 
