From f61af664ecf4fd74ef0adc1138bc09455e89199f Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Mon, 12 Dec 2016 20:40:36 +0900 Subject: asn1: disallow NULL to be passed to asn1time_to_time() Let the callers check the validity of the ASN1_TIME. --- ext/openssl/ossl_asn1.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ext/openssl/ossl_asn1.c') diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c index 59ef226a..00d598ef 100644 --- a/ext/openssl/ossl_asn1.c +++ b/ext/openssl/ossl_asn1.c @@ -24,7 +24,6 @@ asn1time_to_time(const ASN1_TIME *time) VALUE argv[6]; int count; - if (!time || !time->data) return Qnil; memset(&tm, 0, sizeof(struct tm)); switch (time->type) { -- cgit v1.2.3