Skip to content

Commit 8185f13

Browse files
committed
Fixed comparing of two classes.
If we are comparing classes and we know for sure there will only be one classloader involved we can safely use .equals or c1 == c2 but if we are not sure we should compare by name (https://stackoverflow.com/questions/10465253/comparing-two-classes-by-its-types-or-class-names).
1 parent b4642c8 commit 8185f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/workflow/BouncyCastleProviderChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class BouncyCastleProviderChecker {
1616

1717
static boolean isLoaded() {
1818
for (Provider p : Security.getProviders()) {
19-
if (p.getClass().equals(BouncyCastleProvider.class)) {
19+
if (p.getClass().getName().equals(BouncyCastleProvider.class.getName())) {
2020
return true;
2121
}
2222
}

0 commit comments

Comments
 (0)