aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_cipher.c
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2015-12-30 07:17:05 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2015-12-30 07:17:05 +0900
commit4862ab9e21a6962a96af2e6193f7889de61299c8 (patch)
treed942dce87ce04713cb9a65a5d2dc5974499d2927 /ext/openssl/ossl_cipher.c
parent19b2ea9a5e5c8c21869665edcc6fd79622747b28 (diff)
downloadruby-openssl-4862ab9e21a6962a96af2e6193f7889de61299c8.tar.gz
sync code from upstream
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 1318378c..09b021d9 100644
--- a/ext/openssl/ossl_cipher.c
+++ b/ext/openssl/ossl_cipher.c
@@ -91,7 +91,7 @@ static size_t
ossl_cipher_memsize(const void *ptr)
{
const EVP_CIPHER_CTX *ctx = ptr;
- return ctx ? sizeof(*ctx) : 0;
+ return sizeof(*ctx);
}
static VALUE