summaryrefslogtreecommitdiff
path: root/source3/registry/reg_util_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry/reg_util_internal.c')
-rw-r--r--source3/registry/reg_util_internal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/registry/reg_util_internal.c b/source3/registry/reg_util_internal.c
index b15015b988d..e256c75cb2d 100644
--- a/source3/registry/reg_util_internal.c
+++ b/source3/registry/reg_util_internal.c
@@ -113,7 +113,10 @@ char *normalize_reg_path(TALLOC_CTX *ctx, const char *keyname )
p = strrchr(nkeyname, '\\');
}
- strupper_m(nkeyname);
+ if (!strupper_m(nkeyname)) {
+ TALLOC_FREE(nkeyname);
+ return NULL;
+ }
return nkeyname;
}