1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

s4:registry/ldb.c - if "name" isn't set we should return WERR_INVALID_PARAM

This commit is contained in:
Matthias Dieter Wallnöfer 2010-03-10 09:47:02 +01:00
parent 667e8d8fc6
commit 490c0cefeb

View File

@ -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 {