]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix crash from unequal volume_lock/unlock calls
authorKern Sibbald <kern@sibbald.com>
Sun, 20 Jun 2010 15:44:59 +0000 (17:44 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:56 +0000 (16:53 +0200)
bacula/src/stored/mount.c

index 7152f782fff1c830f5a1fff2f25c6040e9bc0964..fbaba31af39009839b190fbcc5456e0c30dc86b1 100644 (file)
@@ -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();