]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #9125 About issue with AllowFDConnections and very high debug level
authorEric Bollengier <eric@baculasystems.com>
Fri, 13 May 2022 16:16:41 +0000 (18:16 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 18 May 2022 07:29:29 +0000 (09:29 +0200)
bacula/src/dird/dird_conf.c

index 49c857ad376e891fdc08b0e01118b452430ae322..ae706f1a7efcc383ea244a9bb88192a94606250f 100644 (file)
@@ -136,6 +136,11 @@ BSOCK *CLIENT::getBSOCK(int timeout)
 
 bool CLIENT::getBSOCK_state(POOLMEM *&buf)
 {
+   /* Can be called at high level of debug when it is not yet initialized */
+   if (!globals) {
+      return false;
+   }
+
    P(globals_mutex);
    if (!globals->socket) {
       globals->socket = New(BsockMeeting());