[ruby/openssl] freeze OpenSSL::Config::DEFAULT_CONFIG_FILE

https://github.com/ruby/openssl/commit/3cc1825435
This commit is contained in:
HoneyryderChuck 2024-11-25 08:51:37 +00:00 committed by git
parent 2a006fe54b
commit 9cae90f9d7

View File

@ -456,6 +456,6 @@ Init_ossl_config(void)
* The default system configuration file for OpenSSL.
*/
path = CONF_get1_default_config_file();
path_str = ossl_buf2str(path, rb_long2int(strlen(path)));
path_str = rb_obj_freeze(ossl_buf2str(path, rb_long2int(strlen(path))));
rb_define_const(cConfig, "DEFAULT_CONFIG_FILE", path_str);
}