core: check that option is not NULL in function config_file_option_value_to_string
This commit is contained in:
parent
301f0942c6
commit
9548a4cf74
@ -1748,6 +1748,9 @@ config_file_option_value_to_string (struct t_config_option *option,
|
||||
const char *ptr_value;
|
||||
int enabled, length;
|
||||
|
||||
if (!option)
|
||||
return NULL;
|
||||
|
||||
if ((default_value && !option->default_value)
|
||||
|| (!default_value && !option->value))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user