]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix a segfault when VolStatus NOT IN (Append, Full, Used, Error)
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 13 May 2007 09:21:34 +0000 (09:21 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 13 May 2007 09:21:34 +0000 (09:21 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4766 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_purge.c

index 30485d3f900c63f86ee9f4c901a87885fb1a7ce4..a8209a26d0df1e8324f9f30cf9b1524640ae52bd 100644 (file)
@@ -407,7 +407,7 @@ bool purge_jobs_from_volume(UAContext *ua, MEDIA_DBR *mr)
       ua->error_msg(_("\nVolume \"%s\" has VolStatus \"%s\" and cannot be purged.\n"
                      "The VolStatus must be: Append, Full, Used, or Error to be purged.\n"),
                      mr->VolumeName, mr->VolStatus);
-      goto bail_out;
+      return 0;
    }
 
    memset(&jr, 0, sizeof(jr));