We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee9f7b commit 2a38f3aCopy full SHA for 2a38f3a
src/main/java/org/jruby/ext/openssl/SSLSocket.java
@@ -428,12 +428,11 @@ private IRubyObject fallback_verify_mode(final ThreadContext context) {
428
429
@JRubyMethod
430
public IRubyObject verify_result(final ThreadContext context) {
431
- final Ruby runtime = context.runtime;
432
if (engine == null) {
433
- runtime.getWarnings().warn("SSL session is not started yet.");
434
- return runtime.getNil();
+ context.runtime.getWarnings().warn("SSL session is not started yet.");
+ return context.nil;
435
}
436
- return runtime.newFixnum(verifyResult);
+ return context.runtime.newFixnum(verifyResult);
437
438
439
// This select impl is a copy of RubyThread.select, then blockingLock is
0 commit comments