summaryrefslogtreecommitdiff
path: root/source4/lib/registry/samba.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry/samba.c')
-rw-r--r--source4/lib/registry/samba.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/registry/samba.c b/source4/lib/registry/samba.c
index fc59bdfdfa..b04dcc75cd 100644
--- a/source4/lib/registry/samba.c
+++ b/source4/lib/registry/samba.c
@@ -40,6 +40,7 @@ static WERROR mount_samba_hive(struct registry_context *ctx,
location = talloc_asprintf(ctx, "%s/%s.ldb",
lp_private_dir(lp_ctx),
name);
+ W_ERROR_HAVE_NO_MEMORY(location);
error = reg_open_hive(ctx, location, auth_info, creds, event_ctx, lp_ctx, &hive);