diff options
author | Amar Tumballi <amar@gluster.com> | 2011-07-25 14:45:12 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-08-01 03:38:45 -0700 |
commit | 09ed0531bd882726e2965d2274d5c9171998f9c8 (patch) | |
tree | 97f831dbb5f60447724a2579f587a853dc94249d /xlators/storage | |
parent | 418ac2c8b7456e3299b5b9b96b532053e37ca3d6 (diff) |
storage/posix: handle dictionary being NULL in a function
Change-Id: Ib9cac6ed1635203802f089986f8acb1ce416265d
BUG: 3215
Reviewed-on: http://review.gluster.com/97
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'xlators/storage')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) || |