]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #6860 DIR crash when VF are started from the scheduler
authorAlain Spineux <alain@baculasystems.com>
Mon, 19 Oct 2020 16:33:48 +0000 (18:33 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:58 +0000 (09:02 +0100)
- the 2016 feature "to implement MaxVirtualFullInterval" from the
  COMMUNITY add a field to the "class RUN" but forget to initialize it
  to NULL in RUN::clearall() and then got 0x5555555555555555 instead
  this was written in 2016 by Thomas Lohman for the COMMUNITY and
  added in march 2020 for the 12.4.0
- test it with : USE_SCHEDULER=yes REGRESS_DEBUG=1 tests/virtual-backup-test

bacula/src/dird/run_conf.c

index 4d87ab86eadb9936e20ff619c89fb8945d324a66..7ea5f8cad1fc86226e512e8b4ec7d01fde564b0b 100644 (file)
@@ -50,7 +50,7 @@ void RUN::clearall()
    MaxRunSchedTime_set = spool_data =  spool_data_set = accurate = accurate_set = false;
    write_part_after_job = write_part_after_job_set = priority_set = level_set = false;
 
-   pool = next_pool = full_pool = inc_pool = diff_pool = NULL;
+   pool = next_pool = full_pool = inc_pool = diff_pool = vfull_pool = NULL;
    storage  = NULL;
    msgs = NULL;
    since = NULL;