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 authored and Marco van Wieringen committed Feb 17, 2015
1 parent 0169d43 commit a46d8e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/dird/ua_select.c
Original file line number Diff line number Diff line change
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 a46d8e9

Please sign in to comment.