summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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);