Merge commit 'v2.5.1'
[ossec-hids.git] / src / win32 / win_agent.c
index b631a9c..0c01224 100755 (executable)
@@ -1,11 +1,11 @@
-/* @(#) $Id: win_agent.c,v 1.56 2009/12/01 20:27:01 dcid Exp $ */
+/* @(#) $Id$ */
 
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
  *
  * This program is a free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation.
  *
  * License details at the LICENSE file included with OSSEC or 
@@ -361,6 +361,7 @@ int SendMSG(int queue, char *message, char *locmsg, char loc)
     cu_time = time(0);
     
 
+    #ifndef ONEWAY
     /* Check if the server has responded */
     if((cu_time - available_server) > (NOTIFY_TIME - 180))
     {
@@ -479,7 +480,12 @@ int SendMSG(int queue, char *message, char *locmsg, char loc)
             }
         }
     }
-    
+    #else
+    if(0)
+    {
+    }
+    #endif
+
 
     /* Send notification */
     else if((cu_time - __win32_curr_time) > (NOTIFY_TIME - 200))