]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #2910 about a problem in the "status network" command when the client is not...
authorEric Bollengier <eric@baculasystems.com>
Wed, 14 Jun 2017 12:50:22 +0000 (14:50 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 14 Jul 2018 12:37:35 +0000 (14:37 +0200)
bacula/src/dird/ua_status.c

index 0aee6ab57ac4b865b505f8e4e81bdb729f22fe30..8aff124f74b4629081ea2593102e77d05ee7a793 100644 (file)
@@ -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);