From 068f5b0ded8fc64781dd758698468f31529394e9 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 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(); -- 2.39.5