summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/posix/src')
-rw-r--r--xlators/storage/posix/src/posix-helpers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
index 484e38c7158..249a82515e9 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -824,6 +824,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) ||