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

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



Module name:	ossec-hids
Changes by:	dcid	07/10/10 20:29:34

Modified files:
	extract-win-el.c win_agent.c

Log message:
Description: Some fixes in time for beta. Changing all rand usage to random, removing some memory leaks nd fixing decoder for pam.
Reviewed by: dcid
Bug:

Index: extract-win-el.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/win32/extract-win-el.c,v
diff -u -r1.4 -r1.5
--- extract-win-el.c	4 Oct 2007 01:41:45 -0000	1.4
+++ extract-win-el.c	10 Oct 2007 23:29:34 -0000	1.5
@@ -419,6 +419,8 @@
    win_startel("Application");	
    win_startel("System");	
    win_startel("Security");	
+
+   fclose(fp);
    return(0);
 }
 

Index: win_agent.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/win32/win_agent.c,v
diff -u -r1.36 -r1.37
--- win_agent.c	18 Sep 2007 03:09:56 -0000	1.36
+++ win_agent.c	10 Oct 2007 23:29:34 -0000	1.37
@@ -227,8 +227,8 @@
 
 
     /* Initial random numbers */
-    srand(time(0));
-    rand();
+    srandom(time(0));
+    random();
 
 
     /* Socket connection */


OSSEC home | Main Index | Thread Index


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