git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4:lib/registry/ldb.c - quit the deletion of a not-existing default value with WERR_B...
[ira/wip.git]
/
source4
/
lib
/
registry
/
ldb.c
diff --git
a/source4/lib/registry/ldb.c
b/source4/lib/registry/ldb.c
index 0aa476f7999a3413078994a3179946041c9b6622..0f0ddf915412897419e4935892259dc8078dbf43 100644
(file)
--- a/
source4/lib/registry/ldb.c
+++ b/
source4/lib/registry/ldb.c
@@
-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;
}