Skip to content
Snippets Groups Projects
Commit a9f2f993 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 98df7803
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment