From fa49100ebd8832f6642c6162a312ff89ecfb2205 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 13 Apr 2023 09:46:49 -0500 Subject: [PATCH] Remove duplicate algorithm in OCSPAdminServlet.getSigningAlgConfig() Previously the OCSPAdminServlet.getSigningAlgConfig() returned a list that contained a duplicate of the first element: :::... The code has been modified to remove the duplicate. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2193458 --- .../java/com/netscape/cms/servlet/admin/OCSPAdminServlet.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/base/ocsp/src/main/java/com/netscape/cms/servlet/admin/OCSPAdminServlet.java b/base/ocsp/src/main/java/com/netscape/cms/servlet/admin/OCSPAdminServlet.java index 15a57249949..200ba058fba 100644 --- a/base/ocsp/src/main/java/com/netscape/cms/servlet/admin/OCSPAdminServlet.java +++ b/base/ocsp/src/main/java/com/netscape/cms/servlet/admin/OCSPAdminServlet.java @@ -459,9 +459,7 @@ private void getSigningAlgConfig(NameValuePairs params) { StringBuffer algorStr = new StringBuffer(); for (int i = 0; i < algorithms.length; i++) { - if (i == 0) - algorStr.append(algorithms[i]); - else + if (i > 0) algorStr.append(":"); algorStr.append(algorithms[i]); }