Skip to content

Commit 12297a0

Browse files
committed
8258736: No break in the loop
Reviewed-by: wetmore
1 parent 01d51a1 commit 12297a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/java.base/share/classes/sun/security/ssl/SSLCipher.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -532,6 +532,7 @@ SSLReadCipher createReadCipher(Authenticator authenticator,
532532
for (ProtocolVersion pv : me.getValue()) {
533533
if (protocolVersion == pv) {
534534
rcg = me.getKey();
535+
break;
535536
}
536537
}
537538
}
@@ -557,6 +558,7 @@ SSLWriteCipher createWriteCipher(Authenticator authenticator,
557558
for (ProtocolVersion pv : me.getValue()) {
558559
if (protocolVersion == pv) {
559560
wcg = me.getKey();
561+
break;
560562
}
561563
}
562564
}

0 commit comments

Comments
 (0)