summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-22 12:20:54 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-22 12:56:45 +0200
commitad82c52db0a057ddb1c463f136d7ff0260d780d0 (patch)
treefdda4f17de175921eda41bceff2a8558fa14fde5 /source3/lib
parent31ad4d77e3899ee6c1aac95e2251c8640535cd71 (diff)
downloadsamba-ad82c52db0a057ddb1c463f136d7ff0260d780d0.tar.gz
samba-ad82c52db0a057ddb1c463f136d7ff0260d780d0.tar.bz2
samba-ad82c52db0a057ddb1c463f136d7ff0260d780d0.zip
s3:serverid: don't ignore the result of dbwrap_parse_record()
metze
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/serverid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c
index 0033d60833..4e31756620 100644
--- a/source3/lib/serverid.c
+++ b/source3/lib/serverid.c
@@ -311,6 +311,7 @@ bool serverids_exist(const struct server_id *ids, int num_ids, bool *results)
struct serverid_exists_state state;
struct serverid_key key;
TDB_DATA tdbkey;
+ NTSTATUS status;
if (ids[i].unique_id == SERVERID_UNIQUE_ID_NOT_TO_VERIFY) {
results[i] = true;
@@ -325,7 +326,11 @@ bool serverids_exist(const struct server_id *ids, int num_ids, bool *results)
state.id = &ids[i];
state.exists = false;
- dbwrap_parse_record(db, tdbkey, server_exists_parse, &state);
+ status = dbwrap_parse_record(db, tdbkey, server_exists_parse, &state);
+ if (!NT_STATUS_IS_OK(status)) {
+ results[i] = false;
+ continue;
+ }
results[i] = state.exists;
}
return true;