diff --git a/cmd/crowdsec/serve.go b/cmd/crowdsec/serve.go index 28fc811d5..3bf53ee54 100644 --- a/cmd/crowdsec/serve.go +++ b/cmd/crowdsec/serve.go @@ -335,7 +335,7 @@ func Serve(cConfig *csconfig.Config, agentReady chan bool) error { } // XXX: just pass the CTICfg - if cConfig.API.CTI != nil && *cConfig.API.CTI.Enabled { + if cConfig.API.CTI != nil && cConfig.API.CTI.Enabled != nil && *cConfig.API.CTI.Enabled { log.Infof("Crowdsec CTI helper enabled") if err := exprhelpers.InitCrowdsecCTI(cConfig.API.CTI.Key, cConfig.API.CTI.CacheTimeout, cConfig.API.CTI.CacheSize, cConfig.API.CTI.LogLevel); err != nil {