mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge pull request #52472 from vedanshbhartia/coverity_1510724
rgw: Remove unnecessary null check from valid_s3_bucket_name reviwed-by: soumyakoduri , yuvalif
This commit is contained in:
commit
4bf3b6b3ca
@ -882,7 +882,7 @@ inline int valid_s3_bucket_name(const std::string& name, bool relaxed=false)
|
||||
continue;
|
||||
|
||||
if (c == '.') {
|
||||
if (!relaxed && s && *s) {
|
||||
if (!relaxed) {
|
||||
// name cannot have consecutive periods or dashes
|
||||
// adjacent to periods
|
||||
// ensure s is neither the first nor the last character
|
||||
|
Loading…
Reference in New Issue
Block a user