summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/dbwrap/dbwrap_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap_util.c b/lib/dbwrap/dbwrap_util.c
index b1efae7221..8452070782 100644
--- a/lib/dbwrap/dbwrap_util.c
+++ b/lib/dbwrap/dbwrap_util.c
@@ -54,6 +54,8 @@ NTSTATUS dbwrap_fetch_int32(struct db_context *db, TDB_DATA key,
return NT_STATUS_INVALID_PARAMETER;
}
+ state.status = NT_STATUS_INTERNAL_ERROR;
+
dbwrap_parse_record(db, key, dbwrap_fetch_int32_parser, &state);
if (NT_STATUS_IS_OK(state.status)) {