Skip to content

Commit

Permalink
bscan: fix crash on excessive SOS records
Browse files Browse the repository at this point in the history
Previously the bscan utility crashed when it read a volume that
contained excessive SOS records (i.e. more SOS than EOS records) and was
asked to sync these to the database.
This patch fixes that crash so that volumes with broken SOS/EOS can now
be scanned again.
  • Loading branch information
arogge committed Apr 10, 2019
1 parent 51cfc37 commit 1ac932c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/src/stored/bscan.cc
Expand Up @@ -794,8 +794,6 @@ static bool RecordCb(DeviceControlRecord* dcr, DeviceRecord* rec)
Pmsg1(0, _("Could not update job record. ERR=%s\n"),
db->strerror());
}
mjcr->read_dcr = NULL;
FreeJcr(mjcr);
}
}
mr.VolFiles = rec->File;
Expand Down

0 comments on commit 1ac932c

Please sign in to comment.