[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-cvs] ossec-hids: win_agent.c (HEAD) [dcid]



Module name:	ossec-hids
Changes by:	dcid	07/07/31 21:52:10

Modified files:
	win_agent.c

Log message:
Description: Removing duplicated keep alive message.
Reviewed by: dcid
Bug:

Index: win_agent.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/win32/win_agent.c,v
diff -u -r1.34 -r1.35
--- win_agent.c	25 Jul 2007 00:39:09 -0000	1.34
+++ win_agent.c	1 Aug 2007 00:52:09 -0000	1.35
@@ -344,13 +344,6 @@
     cu_time = time(0);
     
 
-    /* Send notification */
-    if((cu_time - __win32_curr_time) > (NOTIFY_TIME - 150))
-    {
-        send_win32_info(cu_time);
-    }
-
-    
     /* Check if the server has responded */
     if((cu_time - available_server) > (NOTIFY_TIME - 120))
     {
@@ -379,6 +372,13 @@
             verbose(SERVER_UP, ARGV0);
         }
     }
+    
+    /* Send notification */
+    else if((cu_time - __win32_curr_time) > (NOTIFY_TIME - 150))
+    {
+        send_win32_info(cu_time);
+    }
+
 
     
     /* locmsg cannot have the C:, as we use it as delimiter */


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.