From: Kern Sibbald Date: Sun, 20 Jun 2010 15:44:59 +0000 (+0200) Subject: Fix crash from unequal volume_lock/unlock calls X-Git-Tag: Release-7.0.0~1714 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=667e744c57405d3068394b4d455b0b5f060e6039;p=bacula%2Fbacula Fix crash from unequal volume_lock/unlock calls --- diff --git a/bacula/src/stored/mount.c b/bacula/src/stored/mount.c index 7152f782ff..fbaba31af3 100644 --- a/bacula/src/stored/mount.c +++ b/bacula/src/stored/mount.c @@ -348,6 +348,7 @@ bool DCR::find_a_volume() } unlock_volumes(); if (!dir_ask_sysop_to_create_appendable_volume(dcr)) { + lock_volumes(); return false; } lock_volumes();