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-5.2.1~1249 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b84a74e809df66f73900375b3c49e883190666cb;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();