diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-10-28 19:52:49 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-11-03 20:10:06 +0100 |
commit | 7e0bef604af0abeedd46f3ae42bd3002f18556f5 (patch) | |
tree | 23970364d8373e48b8f2d643646e153eb0755cfa | |
parent | 6b5a296b4a5ec55b57d72e07ee1b5b6c0e20f282 (diff) | |
download | samba-7e0bef604af0abeedd46f3ae42bd3002f18556f5.tar.gz samba-7e0bef604af0abeedd46f3ae42bd3002f18556f5.tar.bz2 samba-7e0bef604af0abeedd46f3ae42bd3002f18556f5.zip |
s4:lib/registry/ldb.c - quit the deletion of a not-existing default value with WERR_BADFILE
Reviewed-by: Jelmer
-rw-r--r-- | source4/lib/registry/ldb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 0aa476f799..0f0ddf9154 100644 --- 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; } |