ext/openssl/ossl_pkey_dh.c in openssl-2.0.0.beta.2 vs ext/openssl/ossl_pkey_dh.c in openssl-2.0.0
- old
+ new
@@ -458,10 +458,10 @@
DH *orig_dh, *dh;
VALUE obj;
GetDH(self, orig_dh);
dh = DHparams_dup(orig_dh); /* err check perfomed by dh_instance */
- obj = dh_instance(CLASS_OF(self), dh);
+ obj = dh_instance(rb_obj_class(self), dh);
if (obj == Qfalse) {
DH_free(dh);
ossl_raise(eDHError, NULL);
}