You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2023/09/22 15:27:39 UTC

[trafficserver] branch master updated: Remove dead code (#10485)

This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 120575adb3 Remove dead code (#10485)
120575adb3 is described below

commit 120575adb34de454e7d704c120df416b60504543
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Sat Sep 23 00:27:31 2023 +0900

    Remove dead code (#10485)
---
 plugins/experimental/access_control/utils.cc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/plugins/experimental/access_control/utils.cc b/plugins/experimental/access_control/utils.cc
index fd27dc1a73..dce98e3815 100644
--- a/plugins/experimental/access_control/utils.cc
+++ b/plugins/experimental/access_control/utils.cc
@@ -393,16 +393,13 @@ cryptoModifiedBase64Decode(const char *in, size_t inLen, char *out, size_t outLe
 {
   size_t bufferLen = inLen;
   switch (inLen % 4) {
-  case 0: /* no padding */
-    break;
   case 2: /* need space for '==' */
     bufferLen += 2;
     break;
   case 3: /* need space for '=' */
     bufferLen += 1;
     break;
-  case 4:     /* malformed base64 */
-    return 0; /* nothing will be written to the output buffer */
+  default: /* no padding */
     break;
   }