mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s4:lib/registry/ldb.c - quit the deletion of a not-existing default value with WERR_BADFILE
Reviewed-by: Jelmer
This commit is contained in:
parent
6b5a296b4a
commit
7e0bef604a
@ -653,7 +653,9 @@ static WERROR ldb_del_value(TALLOC_CTX *mem_ctx, struct hive_key *key,
|
||||
|
||||
talloc_free(msg);
|
||||
|
||||
if (ret != LDB_SUCCESS) {
|
||||
if (ret == LDB_ERR_NO_SUCH_ATTRIBUTE) {
|
||||
return WERR_BADFILE;
|
||||
} else if (ret != LDB_SUCCESS) {
|
||||
DEBUG(1, ("ldb_del_value: %s\n", ldb_errstring(kd->ldb)));
|
||||
return WERR_FOOBAR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user