1
0
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:
Matthias Dieter Wallnöfer 2011-10-28 19:52:49 +02:00
parent 6b5a296b4a
commit 7e0bef604a

View File

@ -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;
}