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 Nov 29, 2023
1 parent 826bfd6 commit fa49100
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit fa49100

Please sign in to comment.