From dd9f53115a452e1e4268a1036f8fb69f9c1b86f7 Mon Sep 17 00:00:00 2001 From: "Javier M. Mellid" Date: Tue, 14 Jun 2016 11:04:23 +0200 Subject: [PATCH] rgw: aws4: fix buffer sharing issue with chunked uploads Signed-off-by: Javier M. Mellid --- src/rgw/rgw_op.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 5ff733028a06..8e81cca1a2ef 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2647,13 +2647,11 @@ void RGWPutObj::execute() if (!len) break; - bufferlist data; + bufferlist &data = data_in; if (s->aws4_auth_streaming_mode) { /* use unwrapped data */ data = s->aws4_auth->bl; len = data.length(); - } else { - data = data_in; } /* do we need this operation to be synchronous? if we're dealing with an object with immutable -- 2.47.3