]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: return error when trying to copy encrypted object without key 38537/head
authorIlsoo Byun <ilsoobyun@linecorp.com>
Fri, 11 Dec 2020 00:57:49 +0000 (09:57 +0900)
committerIlsoo Byun <ilsoobyun@linecorp.com>
Fri, 11 Dec 2020 01:00:49 +0000 (10:00 +0900)
Fixes: https://tracker.ceph.com/issues/48554
Signed-off-by: Ilsoo Byun <ilsoobyun@linecorp.com>
src/rgw/rgw_op.cc

index d7b9f11180ee8e9f7f6d8072a0f8aa151b8efd1b..eebd262ccac967706fbe8ee843781af6bd7c34a9 100644 (file)
@@ -3670,7 +3670,7 @@ int RGWPutObj::get_data(const off_t fst, const off_t lst, bufferlist& bl)
     filter = decrypt.get();
   }
   if (op_ret < 0) {
-    return ret;
+    return op_ret;
   }
 
   ret = obj->range_to_ofs(obj_size, new_ofs, new_end);