Skip to content

Commit

Permalink
[SSHD-1141] DefaultClientKexExtensionHandler: ensure list is modifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaswolf committed Apr 14, 2021
1 parent 797d887 commit 60b50f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected void handleServerSignatureAlgorithms(Session session, Collection<Strin
// Client determines order; server says what it supports. Re-order such that supported ones are
// at the front, in client order, followed by unsupported ones, also in client order.
if (serverAlgorithms != null && !serverAlgorithms.isEmpty()) {
List<NamedFactory<Signature>> clientAlgorithms = session.getSignatureFactories();
List<NamedFactory<Signature>> clientAlgorithms = new ArrayList<>(session.getSignatureFactories());
if (log.isDebugEnabled()) {
log.debug("handleServerSignatureAlgorithms({}): PubkeyAcceptedAlgorithms before: {}", //$NON-NLS-1$
session, clientAlgorithms);
Expand Down

0 comments on commit 60b50f9

Please sign in to comment.