]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix error handling in Browser Uploads. 15054/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 11 May 2017 15:28:14 +0000 (17:28 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 11 May 2017 15:36:52 +0000 (17:36 +0200)
commit60a31af82d9c27f3bd30a2530023da6ff7eb71b6
treea33736ce94602dc92eabf4ce5f64111008933243
parent9af1a1eba112d9a8339ce5788f58741c270af574
rgw: fix error handling in Browser Uploads.

The recent Coverity Scan for Ceph (published May 11, 2017 on
ceph-devel) shows that the read_form_part_header method of
RGWPostObj_ObjStore assigns to a variable but doesn't use it
later. The anomaly is caused by lack of proper error handling.
This commit rectifies it.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_rest.cc