From: Michal Rakowski Date: Tue, 10 Aug 2021 10:44:23 +0000 (+0200) Subject: Revert "Fix #7998 About dir crashing for client intiated backup" X-Git-Tag: Release-11.3.2~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad9e2f619cd85da82ea56fe10c0e18e30165a54b;p=thirdparty%2Fbacula.git Revert "Fix #7998 About dir crashing for client intiated backup" This reverts commit c891dfd15fda4841ed8f6c69b6db7c43c80fb026. --- diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index fa83f8e16..929e8a489 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -303,15 +303,13 @@ static JobId_t start_job(UAContext *ua, JCR *jcr, run_ctx &rc) } Dmsg4(100, "JobId=%u NewJobId=%d pool=%s priority=%d\n", (int)jcr->JobId, JobId, jcr->pool->name(), jcr->JobPriority); + free_jcr(jcr); /* release jcr */ if (JobId == 0) { ua->error_msg(_("Job %s failed.\n"), edit_int64(rc.jr.JobId, ed1)); } else { ua->send_msg(_("Job queued. JobId=%s\n"), edit_int64(JobId, ed1)); } - - free_jcr(jcr); /* release jcr */ - if (rc.fdcalled) { ua->signal(BNET_FDCALLED); /* After this point, this is a new connection */ ua->UA_sock = new_bsock();