Skip to content

Commit f977be2

Browse files
fixed comparison of ObjectId
same behaviour as upstream now, it compares the translated oid strings
1 parent 4daed8e commit f977be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jruby/ext/openssl/ASN1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ public static IRubyObject eq(final ThreadContext context, final IRubyObject self
913913
if (!other.getMetaClass().equals(_ASN1(context.runtime).getClass("ObjectId"))) {
914914
return context.runtime.getFalse();
915915
}
916-
return self.callMethod(context, "value").op_eqq(context, other.callMethod(context, "value"));
916+
return self.callMethod(context, "oid").op_eqq(context, other.callMethod(context, "oid"));
917917
}
918918

919919
private static RubyString name(final ThreadContext context, IRubyObject value,

0 commit comments

Comments
 (0)