소스 검색

ssh: ensure list is modifiable before using Iterator.remove().

Bug: 572849
Change-Id: If6be0024d2069e2d85541d7e87c6b0371db4b3df
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
tags/v5.12.0.202105051250-m2
Thomas Wolf 3 년 전
부모
커밋
983c25064e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitKexExtensionHandler.java

+ 2
- 2
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitKexExtensionHandler.java 파일 보기

@@ -129,8 +129,8 @@ public class JGitKexExtensionHandler extends AbstractLoggingBean
// 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$

Loading…
취소
저장