]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix #7998 About dir crashing for client intiated backup
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Tue, 10 Aug 2021 10:51:06 +0000 (12:51 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
commit5118e2a9696a005069c933c855dd6bc82aaf200f
tree0c632a1e3055ae0205f079fa8007cec341b8ba09
parentad9e2f619cd85da82ea56fe10c0e18e30165a54b
Fix #7998 About dir crashing for client intiated backup

Description:
For client initiated backup, ua->UA_sock == jcr->file_bsock, see
(ua_run.c:275):
if (rc.fdcalled) {
      jcr->file_bsock = ua->UA_sock;
      jcr->file_bsock->set_jcr(jcr);
}

So when jcr is freed, the ua->UA_sock which is used by ua->error_msg
and others, is no longer valid.
bacula/src/dird/ua_run.c