Skip to content

Commit

Permalink
Remove duplicate algorithm in OCSPAdminServlet.getSigningAlgConfig()
Browse files Browse the repository at this point in the history
Previously the OCSPAdminServlet.getSigningAlgConfig() returned
a list that contained a duplicate of the first element:

  <alg1><alg1>:<alg2>:<alg3>:...

The code has been modified to remove the duplicate.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2193458
  • Loading branch information
edewata committed May 5, 2023
1 parent b87ef09 commit c9f4820
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,7 @@ private void getSigningAlgConfig(NameValuePairs params) {
for (int i = 0; i < algorithms.length; i++) {
logger.info("OCSPAdminServlet: - " + algorithms[i]);

if (i == 0) {
algorStr.append(algorithms[i]);
} else {
if (i > 0) {
algorStr.append(":");
}
algorStr.append(algorithms[i]);
Expand Down

0 comments on commit c9f4820

Please sign in to comment.