summaryrefslogtreecommitdiff
path: root/libgpo/gpext
diff options
context:
space:
mode:
Diffstat (limited to 'libgpo/gpext')
-rw-r--r--libgpo/gpext/gpext.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgpo/gpext/gpext.c b/libgpo/gpext/gpext.c
index 8bda729d69..df84475754 100644
--- a/libgpo/gpext/gpext.c
+++ b/libgpo/gpext/gpext.c
@@ -440,7 +440,9 @@ static WERROR gp_extension_store_reg_entry(TALLOC_CTX *mem_ctx,
subkeyname = GUID_string2(mem_ctx, &entry->guid);
W_ERROR_HAVE_NO_MEMORY(subkeyname);
- strupper_m(discard_const_p(char, subkeyname));
+ if (!strupper_m(discard_const_p(char, subkeyname))) {
+ return WERR_INVALID_PARAM;
+ }
werr = gp_store_reg_subkey(mem_ctx,
subkeyname,