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.0.3~121 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=068f5b0ded8fc64781dd758698468f31529394e9;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 543c333072..d3a5b11f79 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();