From b08aa4ed92625693b60cd490f1d8f10ca8fdaefd Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 25 Apr 2012 18:49:53 -0400 Subject: [PATCH] Check for os_sesion to exist before having defcon try and place session bans --- modules/commands/os_defcon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index 6b305c736..ee167e079 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -534,7 +534,7 @@ class OSDefcon : public Module return; } - if (!DConfig.sessionlimit) + if (!DConfig.sessionlimit || !session_service) return; Session *session = session_service->FindSession(u->host);