summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/ossl_cipher.c')
-rw-r--r--ext/openssl/ossl_cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c
index 45533e1611..877076cee4 100644
--- a/ext/openssl/ossl_cipher.c
+++ b/ext/openssl/ossl_cipher.c
@@ -316,7 +316,7 @@ ossl_cipher_set_padding(VALUE self, VALUE padding)
EVP_CIPHER_CTX *ctx;
GetCipher(self, ctx);
- if (EVP_CIPHER_CTX_set_padding(ctx, RTEST(padding)) != 1)
+ if (EVP_CIPHER_CTX_set_padding(ctx, NUM2INT(padding)) != 1)
ossl_raise(eCipherError, NULL);
#else
rb_notimplement();