svn commit: samba r6899 - in trunk/source/registry: .

jerry at samba.org jerry at samba.org
Thu May 19 03:32:41 GMT 2005


Author: jerry
Date: 2005-05-19 03:32:41 +0000 (Thu, 19 May 2005)
New Revision: 6899

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6899

Log:
fix segfault in the eventlog registry code
Modified:
   trunk/source/registry/reg_eventlog.c


Changeset:
Modified: trunk/source/registry/reg_eventlog.c
===================================================================
--- trunk/source/registry/reg_eventlog.c	2005-05-19 03:27:33 UTC (rev 6898)
+++ trunk/source/registry/reg_eventlog.c	2005-05-19 03:32:41 UTC (rev 6899)
@@ -202,10 +202,14 @@
     if ( !path )
 	top_level = True;
     
-    evtlog_list = lp_eventlog_list();
     num_subkeys = 0;
+    if ( !(evtlog_list = lp_eventlog_list()) ) {
+	SAFE_FREE(path);
+	return num_subkeys;
+    }
+
     
-    if ( top_level ) 
+    if ( top_level )
     { 
         /* todo - get the eventlog subkey values from the smb.conf file
 	   for ( num_subkeys=0; num_subkeys<MAX_TOP_LEVEL_KEYS; num_subkeys++ )



More information about the samba-cvs mailing list