]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Remove unnecessary null check from valid_s3_bucket_name 52472/head
authorVedansh Bhartia <vedanshbhartia@gmail.com>
Sun, 30 Jul 2023 05:44:42 +0000 (11:14 +0530)
committerVedansh Bhartia <vedanshbhartia@gmail.com>
Sun, 30 Jul 2023 05:44:42 +0000 (11:14 +0530)
Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
src/rgw/rgw_rest_s3.h

index 20237166ba63adff6ac0383cacf92432402059ca..ac22ec4e162041d295972c8535527af3ec8adc64 100644 (file)
@@ -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