diff options
author | shishir gowda <shishirng@gluster.com> | 2012-04-17 11:23:46 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-04-17 01:14:58 -0700 |
commit | 6b0a44b4df1c1f7d70b2296862d25bf166009ebc (patch) | |
tree | 2bdb2147648e74514bb8af4fd6c260143c281d94 /xlators | |
parent | 41bd7281a5fe4062fabe963d7862117aca50cc3d (diff) |
protocol/server: Check if dict arg is NULL in setxattr
Change-Id: I44d199ffa5d08115cc0aa7cb0b99298a9907af60
BUG: 808067
Signed-off-by: shishir gowda <shishirng@gluster.com>
Reviewed-on: http://review.gluster.com/3164
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/protocol/server/src/server-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index 7ccd629e791..7c5106d01b8 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -1405,7 +1405,7 @@ gf_server_check_setxattr_cmd (call_frame_t *frame, dict_t *dict) uint64_t total_write = 0; conf = frame->this->private; - if (!conf) + if (!conf || !dict) return 0; for (pair = dict->members_list; pair; pair = pair->next) { |