]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix possible bug in cancel_job() with job that are not
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 8 Oct 2008 11:56:43 +0000 (11:56 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 8 Oct 2008 11:56:43 +0000 (11:56 +0000)
     yet created.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7731 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/job.c
bacula/technotes-2.5

index 106757514f216d1917b0828a9c5d72971cf87a5b..3f6c0a56a2188b81813ad7a7fdc9539993787fea 100644 (file)
@@ -373,10 +373,11 @@ bool cancel_job(UAContext *ua, JCR *jcr)
 {
    BSOCK *sd, *fd;
    char ed1[50];
+   int32_t old_status = jcr->JobStatus;
 
    set_jcr_job_status(jcr, JS_Canceled);
 
-   switch (jcr->JobStatus) {
+   switch (old_status) {
    case JS_Created:
    case JS_WaitJobRes:
    case JS_WaitClientRes:
index 10ef3a00b7a5054cccfa855b28f9d0b8d053c77d..2b9f64e00d8e410f93ef0caa6400a737e58cc909 100644 (file)
@@ -17,6 +17,9 @@ dbdriver
 remove reader/writer in FOPTS????
 
 General:
+08Oct08
+ebl  Fix possible bug in cancel_job() with job that are not
+     yet created.
 07Oct08
 kes  Fix bat build for Win32.
 06Oct08