Skip to content
Snippets Groups Projects
Commit 97650f46 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

sbbs_write_ini() called with a NULL global pointer could have crashed

as get_ini_globals() will de-ref the 'interfaces' element. CID 331352
parent 59053de5
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -773,7 +773,7 @@ BOOL sbbs_write_ini(
memset(&style, 0, sizeof(style));
style.key_prefix = "\t";
style.section_separator = "";
style.section_separator = "";
style.value_separator = " = ";
style.bit_separator = " | ";
......@@ -781,6 +781,7 @@ style.section_separator = "";
return(FALSE);
if(global==NULL) {
memset(&global_buf,0,sizeof(global_buf));
get_ini_globals(list, &global_buf);
global = &global_buf;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment