metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 17:10:52 CEST 2012 on sn-devel-104
int32_t *result)
{
struct dbwrap_fetch_int32_state state;
+ NTSTATUS status;
if (result == NULL) {
return NT_STATUS_INVALID_PARAMETER;
state.status = NT_STATUS_INTERNAL_ERROR;
- dbwrap_parse_record(db, key, dbwrap_fetch_int32_parser, &state);
+ status = dbwrap_parse_record(db, key, dbwrap_fetch_int32_parser, &state);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
if (NT_STATUS_IS_OK(state.status)) {
*result = state.result;