git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b5a296
)
s4:lib/registry/ldb.c - quit the deletion of a not-existing default value with WERR_B...
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Fri, 28 Oct 2011 17:52:49 +0000
(19:52 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Thu, 3 Nov 2011 19:10:06 +0000
(20:10 +0100)
Reviewed-by: Jelmer
source4/lib/registry/ldb.c
patch
|
blob
|
history
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;
}