summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-10 09:47:02 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-10 18:50:00 +0100
commit490c0cefeb3fcbba3e8d38ecec23d3b438d58d92 (patch)
treea5a6f725e8d73e06097d1c50f2aff1ca50725877 /source4/lib
parent667e8d8fc63f83bdc9580493c61fe3374c2c4da7 (diff)
downloadsamba-490c0cefeb3fcbba3e8d38ecec23d3b438d58d92.tar.gz
samba-490c0cefeb3fcbba3e8d38ecec23d3b438d58d92.tar.bz2
samba-490c0cefeb3fcbba3e8d38ecec23d3b438d58d92.zip
s4:registry/ldb.c - if "name" isn't set we should return WERR_INVALID_PARAM
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/ldb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c
index a27c94e4a9..0213c54a53 100644
--- a/source4/lib/registry/ldb.c
+++ b/source4/lib/registry/ldb.c
@@ -369,7 +369,11 @@ static WERROR ldb_get_value(TALLOC_CTX *mem_ctx, struct hive_key *k,
int ret;
char *query;
- if ((name == NULL) || (name[0] == '\0')) {
+ if (name == NULL) {
+ return WERR_INVALID_PARAM;
+ }
+
+ if (name[0] == '\0') {
/* default value */
return ldb_get_default_value(mem_ctx, k, NULL, data_type, data);
} else {