Skip to content

Commit

Permalink
freeze OpenSSL::Config::DEFAULT_CONFIG_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
HoneyryderChuck authored and rhenium committed Dec 7, 2024
1 parent 5059951 commit 3cc1825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/openssl/ossl_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 3cc1825

Please sign in to comment.