From: Eric Bollengier Date: Fri, 13 May 2022 16:16:41 +0000 (+0200) Subject: Fix #9125 About issue with AllowFDConnections and very high debug level X-Git-Tag: Release-13.0.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28029163442a11b582963c90590c772a0266ddf7;p=thirdparty%2Fbacula.git Fix #9125 About issue with AllowFDConnections and very high debug level --- diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c index 49c857ad3..ae706f1a7 100644 --- a/bacula/src/dird/dird_conf.c +++ b/bacula/src/dird/dird_conf.c @@ -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());