From: Eric Bollengier Date: Wed, 14 Jun 2017 12:50:22 +0000 (+0200) Subject: Fix #2910 about a problem in the "status network" command when the client is not... X-Git-Tag: Release-9.2.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8f7dd85d9e29ab67496889742c125946d309e5;p=thirdparty%2Fbacula.git Fix #2910 about a problem in the "status network" command when the client is not reachable --- diff --git a/bacula/src/dird/ua_status.c b/bacula/src/dird/ua_status.c index 0aee6ab57..8aff124f7 100644 --- a/bacula/src/dird/ua_status.c +++ b/bacula/src/dird/ua_status.c @@ -229,8 +229,12 @@ static int do_network_status(UAContext *ua) } bail_out: - jcr->file_bsock->signal(BNET_TERMINATE); - jcr->store_bsock->signal(BNET_TERMINATE); + if (jcr->file_bsock) { + jcr->file_bsock->signal(BNET_TERMINATE); + } + if (jcr->store_bsock) { + jcr->store_bsock->signal(BNET_TERMINATE); + } wait_for_storage_daemon_termination(jcr); free_bsock(jcr->file_bsock);