bareos: bareos-15.2 0b6435d7

Author Committer Branch Timestamp Parent Ported
pstorz mvwieringen bareos-15.2 2015-11-12 17:39:51 bareos-15.2 9848e50f Pending
Affected Issues  0000414: Bareos storage daemon crashes during backups
 0000483: bareos-sd crash during backup
 0000522: storage daemon crashes ocassionally when starting a new job
 0000552: SD crashes in -current
 0000564: director crashes when inventorying library
Changeset Fix random crashes on sd

The block variable was set to the dcr->block, but that can be altered in
the call to dev->set_label_blocksize(dcr).

When that happens, the code goes on with the wrong block.
We removed the whole local variable as it makes no sense and is only
referenced 3 times when calling empty_block()

Fixes 0000414: Bareos storage daemon crashes during backups
Fixse 0000483: bareos-sd crash during backup
Fixes 0000522: storage daemon crashes ocassionally when starting a new job
Fixes 0000552: SD crashes in -current

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - src/stored/label.c Diff File