]> 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)
committerKern Sibbald <kern@sibbald.com>
Sun, 20 Jun 2010 15:45:52 +0000 (17:45 +0200)
bacula/src/stored/mount.c

index 543c33307238f9e4f0b8ddcf6dcbd676ed8c19f3..d3a5b11f79452d95e38440cf3b1135160c8b9c62 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();