diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 593a6aa758..aa4c947028 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -2450,7 +2450,7 @@ ossl_ssl_export_keying_material(int argc, VALUE *argv, VALUE self) unsigned char *p; size_t len; int use_ctx = 0; - unsigned char *ctx; + unsigned char *ctx = NULL; size_t ctx_len = 0; int ret;