bareos2015: bareos-14.2 c27dc2c8
Author | Committer | Branch | Timestamp | Parent | |
---|---|---|---|---|---|
Andre Noll | mvwieringen | bareos-14.2 | 2013-07-05 16:39 | bareos-14.2 e5d0c534 | Pending |
Changeset | sd: Avoid segfault in is_vol_in_autochanger(). If the sd config file contains a Device section for a device not listed in the Autochanger config section, is_vol_in_autochanger() might be called with vol->dev->device->changer_res being NULL. However, the function dereferences this pointer unconditionally, which results in a segfault. This patch adds the necessary check and returns false in this case, avoiding the crash. Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com> |
||||
mod - src/stored/reserve.c | Diff File |