Skip to content

Commit 3cc1825

Browse files
HoneyryderChuckrhenium
authored andcommitted
freeze OpenSSL::Config::DEFAULT_CONFIG_FILE
1 parent 5059951 commit 3cc1825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/ossl_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,6 @@ Init_ossl_config(void)
456456
* The default system configuration file for OpenSSL.
457457
*/
458458
path = CONF_get1_default_config_file();
459-
path_str = ossl_buf2str(path, rb_long2int(strlen(path)));
459+
path_str = rb_obj_freeze(ossl_buf2str(path, rb_long2int(strlen(path))));
460460
rb_define_const(cConfig, "DEFAULT_CONFIG_FILE", path_str);
461461
}

0 commit comments

Comments
 (0)