Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 97650f46 authored by Rob Swindell's avatar Rob Swindell 💬

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
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment