diff options
-rw-r--r-- | lib/dbwrap/dbwrap_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dbwrap/dbwrap_cache.c b/lib/dbwrap/dbwrap_cache.c index 6c6b795a41..c5f7cce61a 100644 --- a/lib/dbwrap/dbwrap_cache.c +++ b/lib/dbwrap/dbwrap_cache.c @@ -69,13 +69,13 @@ static NTSTATUS dbwrap_cache_parse_record( return NT_STATUS_NO_MEMORY; } + if (dbwrap_exists(ctx->negative, key)) { + return NT_STATUS_NOT_FOUND; + } status = dbwrap_parse_record(ctx->positive, key, parser, private_data); if (NT_STATUS_IS_OK(status)) { return status; } - if (dbwrap_exists(ctx->negative, key)) { - return NT_STATUS_NOT_FOUND; - } status = dbwrap_fetch(ctx->backing, talloc_tos(), key, &value); |