diff options
Diffstat (limited to 'OpenSSL/X509/ExtensionFactory.html')
-rw-r--r-- | OpenSSL/X509/ExtensionFactory.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSSL/X509/ExtensionFactory.html b/OpenSSL/X509/ExtensionFactory.html index 4ba70ea7..f909b568 100644 --- a/OpenSSL/X509/ExtensionFactory.html +++ b/OpenSSL/X509/ExtensionFactory.html @@ -252,11 +252,10 @@ ossl_x509extfactory_create_ext(int argc, VALUE *argv, VALUE self) GetX509ExtFactory(self, ctx); obj = NewX509Ext(cX509Ext); rconf = rb_iv_get(self, "@config"); - conf = NIL_P(rconf) ? NULL : DupConfigPtr(rconf); + conf = NIL_P(rconf) ? NULL : GetConfig(rconf); X509V3_set_nconf(ctx, conf); ext = X509V3_EXT_nconf_nid(conf, ctx, nid, RSTRING_PTR(valstr)); X509V3_set_ctx_nodb(ctx); - NCONF_free(conf); if (!ext){ ossl_raise(eX509ExtError, "%"PRIsVALUE" = %"PRIsVALUE, oid, valstr); } |