summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r--xlators/storage/posix/src/posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index b3ed23a..785d16e 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) ||