Skip to content

Commit 6d3eba1

Browse files
committed
X.509 addError 13 makes no sense and is never actually executed
1 parent a4cc46d commit 6d3eba1

File tree

1 file changed

+3
-4
lines changed
  • src/main/java/org/jruby/ext/openssl/x509store

1 file changed

+3
-4
lines changed

src/main/java/org/jruby/ext/openssl/x509store/Lookup.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,9 @@ public int loadCRLFile(final String file, final int type) throws Exception {
278278
}
279279
else if ( type == X509_FILETYPE_ASN1 ) {
280280
crl = SecurityHelper.getCertificateFactory("X.509").generateCRL(in);
281-
if ( crl == null ) {
282-
X509Error.addError(13);
283-
return 0;
284-
}
281+
//if ( crl == null ) {
282+
// X509Error.addError(13); return 0;
283+
//}
285284
return store.addCRL(crl);
286285
}
287286
else {

0 commit comments

Comments
 (0)