diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_idmap_check.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net_idmap_check.c b/source3/utils/net_idmap_check.c index 17389a53bb..95e5b2d6e6 100644 --- a/source3/utils/net_idmap_check.c +++ b/source3/utils/net_idmap_check.c @@ -318,7 +318,10 @@ static int add_record(struct check_ctx* ctx, TDB_DATA key, TDB_DATA value) return -1; }; if (rec->value.dptr == 0) { /* first entry */ - diff.oval = dbwrap_fetch(ctx->db, ctx->diff, key); + status = dbwrap_fetch(ctx->db, ctx->diff, key, &diff.oval); + if (!NT_STATUS_IS_OK(status)) { + diff.oval = tdb_null; + } } else { diff = unpack_diff(rec->value); talloc_free(diff.nval.dptr); |