From 0e28448a780cf231ae38fe03a85cf6e1ea9dded0 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 24 Aug 2011 13:08:13 +0200 Subject: s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and dbwrap_fetch_bystring_upper() to NTSTATUS --- source3/utils/net_idmap_check.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/utils/net_idmap_check.c') 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); -- cgit