svn commit: samba r17047 - in branches/SAMBA_3_0/source/registry: .

vlendec at samba.org vlendec at samba.org
Sat Jul 15 08:36:45 GMT 2006


Author: vlendec
Date: 2006-07-15 08:36:44 +0000 (Sat, 15 Jul 2006)
New Revision: 17047

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

Log:
Fix a typo and a possible NULL dereference
Modified:
   branches/SAMBA_3_0/source/registry/reg_db.c


Changeset:
Modified: branches/SAMBA_3_0/source/registry/reg_db.c
===================================================================
--- branches/SAMBA_3_0/source/registry/reg_db.c	2006-07-15 00:34:08 UTC (rev 17046)
+++ branches/SAMBA_3_0/source/registry/reg_db.c	2006-07-15 08:36:44 UTC (rev 17047)
@@ -229,7 +229,7 @@
 	/* always setup the necessary keys and values */
 
 	if ( !init_registry_data() ) {
-		DEBUG(0,("init_registry: Failed to initiailize data in registry!\n"));
+		DEBUG(0,("init_registry: Failed to initialize data in registry!\n"));
 		return False;
 	}
 
@@ -313,7 +313,9 @@
 
 	/* allocate some initial memory */
 		
-	buffer = SMB_MALLOC(sizeof(pstring));
+	if (!(buffer = SMB_MALLOC(sizeof(pstring)))) {
+		return False;
+	}
 	buflen = sizeof(pstring);
 	len = 0;
 	



More information about the samba-cvs mailing list