From b84a74e809df66f73900375b3c49e883190666cb Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 20 Jun 2010 17:44:59 +0200 Subject: [PATCH] Fix crash from unequal volume_lock/unlock calls --- bacula/src/stored/mount.c | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.5