summaryrefslogtreecommitdiff
path: root/source3/registry/reg_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry/reg_db.c')
-rw-r--r--source3/registry/reg_db.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c
index 5484c238b6..d73b27521d 100644
--- a/source3/registry/reg_db.c
+++ b/source3/registry/reg_db.c
@@ -229,7 +229,7 @@ BOOL regdb_init( void )
/* 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 @@ static BOOL regdb_store_keys_internal( const char *key, REGSUBKEY_CTR *ctr )
/* allocate some initial memory */
- buffer = SMB_MALLOC(sizeof(pstring));
+ if (!(buffer = SMB_MALLOC(sizeof(pstring)))) {
+ return False;
+ }
buflen = sizeof(pstring);
len = 0;