From c4a1e1bb0c82c954657dc39c5abbc29978bef701 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 8 Sep 2012 04:51:44 -0400 Subject: [PATCH] Fixed os_defcon too --- modules/commands/os_defcon.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index bc3265512..741eb9d43 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -536,7 +536,15 @@ class OSDefcon : public Module if (!DConfig.sessionlimit || !session_service) return; - Session *session = session_service->FindSession(u->host); + Session *session; + try + { + session = session_service->FindSession(u->ip); + } + catch (const SocketException &) + { + return; + } Exception *exception = session_service->FindException(u); if (DConfig.Check(DEFCON_REDUCE_SESSION) && !exception)