diff options
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_db.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 0245f4ca10..8537f40600 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -1909,6 +1909,11 @@ static NTSTATUS regdb_store_values_internal(struct db_context *db, goto done; } + if (regval_ctr_numvals(values) == 0) { + WERROR werr = regdb_delete_values(db, key); + return werror_to_ntstatus(werr); + } + ZERO_STRUCT(data); len = regdb_pack_values(values, data.dptr, data.dsize); |