ssh: ensure list is modifiable before using Iterator.remove().
Bug: 572849 Change-Id: If6be0024d2069e2d85541d7e87c6b0371db4b3df Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
This commit is contained in:
parent
91b2e167a2
commit
983c25064e
|
@ -129,8 +129,8 @@ protected void handleServerSignatureAlgorithms(Session session,
|
||||||
// such that supported ones are at the front, in client order,
|
// such that supported ones are at the front, in client order,
|
||||||
// followed by unsupported ones, also in client order.
|
// followed by unsupported ones, also in client order.
|
||||||
if (serverAlgorithms != null && !serverAlgorithms.isEmpty()) {
|
if (serverAlgorithms != null && !serverAlgorithms.isEmpty()) {
|
||||||
List<NamedFactory<Signature>> clientAlgorithms = session
|
List<NamedFactory<Signature>> clientAlgorithms = new ArrayList<>(
|
||||||
.getSignatureFactories();
|
session.getSignatureFactories());
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug(
|
log.debug(
|
||||||
"handleServerSignatureAlgorithms({}): PubkeyAcceptedAlgorithms before: {}", //$NON-NLS-1$
|
"handleServerSignatureAlgorithms({}): PubkeyAcceptedAlgorithms before: {}", //$NON-NLS-1$
|
||||||
|
|
Loading…
Reference in New Issue