From 3780881e1bc4387f55e065508fb8fad371fc2b51 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 1 Aug 2011 16:20:12 +0530 Subject: storage/posix: handle dictionary being NULL in a function also print a warning message if dictionary is NULL, while sending a mkdir request in distribute self-heal. Change-Id: Ib9cac6ed1635203802f089986f8acb1ce416265d BUG: 3215 Reviewed-on: http://review.gluster.com/136 Tested-by: Gluster Build System Reviewed-by: Shishir Gowda --- xlators/storage/posix/src/posix-helpers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 484e38c71..249a82515 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) || -- cgit