summaryrefslogtreecommitdiff
path: root/source3/services
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-18 17:23:41 +0100
committerMichael Adam <obnox@samba.org>2008-02-18 17:41:19 +0100
commit5cd707f82c238633df9f89ea45d71e2a92b48161 (patch)
tree80a05ec9c14ace151f5923729a400a1ebcb88545 /source3/services
parent1638941ba296fff1a5b22ed34dbe6eb7e0dbb4b2 (diff)
downloadsamba-5cd707f82c238633df9f89ea45d71e2a92b48161.tar.gz
samba-5cd707f82c238633df9f89ea45d71e2a92b48161.tar.bz2
samba-5cd707f82c238633df9f89ea45d71e2a92b48161.zip
Add a check for success of fetch_reg_values().
Michael (This used to be commit ba69097f37086537e6b2606fceeb874f6d3e4e1c)
Diffstat (limited to 'source3/services')
-rw-r--r--source3/services/services_db.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/services/services_db.c b/source3/services/services_db.c
index 37440a299f..89095c628d 100644
--- a/source3/services/services_db.c
+++ b/source3/services/services_db.c
@@ -531,7 +531,11 @@ SEC_DESC *svcctl_get_secdesc( TALLOC_CTX *ctx, const char *name, NT_USER_TOKEN *
return NULL;
}
- fetch_reg_values( key, values );
+ if (fetch_reg_values( key, values ) == -1) {
+ DEBUG(0, ("Error getting registry values\n"));
+ TALLOC_FREE(key);
+ return NULL;
+ }
TALLOC_FREE(key);