« Previous | Next » 

Revision 9b9a7143

ID9b9a7143c43d01f0459d40363d56e9c7690c596f
Parent 3aed0a6f
Child 86b4e170

Added by Ondrej Zajicek (work) about 5 years ago

Conf: Fixes bug in symbol lookup during reconfiguration

Symbol lookup by cf_find_symbol() not only did the lookup but also added
new void symbols allocated from cfg_mem linpool, which gets broken when
lookups are done outside of config parsing, which may lead to crashes
during reconfiguration.

The patch separates lookup-only cf_find_symbol() and config-modifying
cf_get_symbol(), while the later is called only during parsing. Also
new_config and cfg_mem global variables are NULLed outside of parsing.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences