bareos: master 91f35fa5

Author Committer Branch Timestamp Parent
arogge arogge master 2023-03-15 10:13 master 0c6349b1 Pending
Changeset dird: fix use-after-free after a failed reload

When reloading the configuration failed, the working_directory would not
be reset correctly which made it point to the freed string of the new
configuration.
Now SetWorkingDirectory() is called after reloading in case of success
and failure.

This also allows to run all of the reload systemtests under a sanitizer
which failed previously because of the use-after-free.
mod - core/src/dird/reload.cc Diff File
mod - systemtests/tests/reload/CMakeLists.txt Diff File