diff options
Diffstat (limited to 'ossl_pkey.c')
-rw-r--r-- | ossl_pkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ossl_pkey.c b/ossl_pkey.c index 5737b53..795492f 100644 --- a/ossl_pkey.c +++ b/ossl_pkey.c @@ -90,7 +90,7 @@ GetPrivPKeyPtr(VALUE obj) SafeGetPKey(obj, pkey); - if (RTEST(rb_funcall(obj, id_private_q, 0, NULL))) { /* returns Qtrue */ + if (rb_funcall(obj, id_private_q, 0, NULL) == Qtrue) { /* returns Qtrue */ return pkey; } rb_raise(rb_eArgError, "Private key is needed."); @@ -105,7 +105,7 @@ DupPrivPKeyPtr(VALUE obj) SafeGetPKey(obj, pkey); - if (RTEST(rb_funcall(obj, id_private_q, 0, NULL))) { /* returns Qtrue */ + if (rb_funcall(obj, id_private_q, 0, NULL) = Qtrue) { /* returns Qtrue */ CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY); return pkey; } |