mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
rgw: use bl.to_str() and not bl.c_str()
can't rely on bufferlist to be null terminated Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
parent
b55c102afc
commit
63591be687
@ -3622,7 +3622,7 @@ int RGWRados::Object::Write::_do_write_meta(uint64_t size, uint64_t accounted_si
|
||||
if (name.compare(RGW_ATTR_ETAG) == 0) {
|
||||
etag = bl.to_str();
|
||||
} else if (name.compare(RGW_ATTR_CONTENT_TYPE) == 0) {
|
||||
content_type = bl.c_str();
|
||||
content_type = bl.to_str();
|
||||
} else if (name.compare(RGW_ATTR_ACL) == 0) {
|
||||
acl_bl = bl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user