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

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



Module name:	ossec-hids
Changes by:	dcid	06/08/29 16:35:43

Modified files:
	win_agent.c win_service.c

Log message:
Description: More fixes for the client/server control. Added global ossec lock and some new rules..
Reviewed by: dcid
Bug:

Index: win_agent.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/win32/win_agent.c,v
diff -u -r1.16 -r1.17
--- win_agent.c	17 Aug 2006 00:41:21 -0000	1.16
+++ win_agent.c	29 Aug 2006 19:35:43 -0000	1.17
@@ -232,6 +232,10 @@
     crypt_msg[OS_MAXSTR +1] = '\0';
 
 
+    /* Checking for global locks */
+    os_wait();
+
+    
     /* Using a mutex to synchronize the writes */
     dwWaitResult = WaitForSingleObject(hMutex, 5000L);
 

Index: win_service.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/win32/win_service.c,v
diff -u -r1.5 -r1.6
--- win_service.c	17 Jul 2006 01:02:43 -0000	1.5
+++ win_service.c	29 Aug 2006 19:35:43 -0000	1.6
@@ -95,9 +95,7 @@
     {
         char local_msg[1025];
         LPVOID lpMsgBuf;
-        TCHAR szMsg[1001];
         
-        memset(szMsg, 0, 1001);
         memset(local_msg, 0, 1025);
 
         FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER |


OSSEC home | Main Index | Thread Index


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