summaryrefslogtreecommitdiff
path: root/source3/libgpo/gpo_reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libgpo/gpo_reg.c')
-rw-r--r--source3/libgpo/gpo_reg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libgpo/gpo_reg.c b/source3/libgpo/gpo_reg.c
index 80639b86c5..de4a7937ec 100644
--- a/source3/libgpo/gpo_reg.c
+++ b/source3/libgpo/gpo_reg.c
@@ -60,8 +60,9 @@ WERROR gp_init_reg_ctx(TALLOC_CTX *mem_ctx,
return WERR_INVALID_PARAM;
}
- if (!registry_init_basic()) {
- return WERR_CAN_NOT_COMPLETE;
+ werr = registry_init_basic();
+ if (!W_ERROR_IS_OK(werr)) {
+ return werr;
}
tmp_ctx = TALLOC_ZERO_P(mem_ctx, struct gp_registry_context);