]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix #7998 About dir crashing for client intiated backup
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Fri, 6 Aug 2021 21:40:59 +0000 (23:40 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
commitf8da3a8a0f9c0af4178738c42b998a10ba5c28db
tree7908b515e7302b5bd44e963ad861e64e3bfa2f8a
parent94a323373c3650b3b8dc87fe75436e6aeacb4572
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