Skip to content

Commit

Permalink
Fixed wrong handling of cancel command
Browse files Browse the repository at this point in the history
Fixes #261: cancel all" crashs often director
  • Loading branch information
pstorz committed Dec 18, 2013
1 parent 1e78405 commit 2dd7763
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/dird/ua_select.c
Expand Up @@ -1217,14 +1217,13 @@ alist *select_jobs(UAContext *ua, const char *reason)
ua->error_msg(_("Unauthorized command from this console.\n"));
goto bail_out;
}
}

if (insert_selected_jobid(selected_jobids, jcr->JobId)) {
cnt++;
}

if (insert_selected_jobid(selected_jobids, jcr->JobId)) {
cnt++;
}
free_jcr(jcr);
jcr = NULL;
}
}
}

Expand Down

0 comments on commit 2dd7763

Please sign in to comment.