bareos: master debc8efd

Author Committer Branch Timestamp Parent
arogge pstorz master 2022-03-07 11:30 master 18797e4f Pending
Changeset stored: don't dereference nullptr in migrate.cc

In DoActualMigration() function jcr->db_batch->WriteBatchFileRecords()
was called without checking if jcr->db_batch was valid. While the
function itself took precautions to work correctly in that scenario, it
is still undefined behaviour.
This patch adds the proper check.
mod - core/src/dird/migrate.cc Diff File