summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-21 12:57:28 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-24 13:43:32 +0200
commit84b5a5cbcd5e1c9ff984cd37b35a67707ceb430b (patch)
tree16a8d771af9e44e3329a5fcdbf5ecc6894a21d96
parent95f3662bbd587af24c2ff5411318e9d466412ee9 (diff)
downloadsamba-84b5a5cbcd5e1c9ff984cd37b35a67707ceb430b.tar.gz
samba-84b5a5cbcd5e1c9ff984cd37b35a67707ceb430b.tar.bz2
samba-84b5a5cbcd5e1c9ff984cd37b35a67707ceb430b.zip
s3:lib: SERVERID_UNIQUE_ID_NOT_TO_VERIFY only means not to verify the 'unique_id' part
It doesn't mean the the server_id is always valid. metze
-rw-r--r--source3/lib/serverid.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c
index 1ab0d6958c..1cda03b3a6 100644
--- a/source3/lib/serverid.c
+++ b/source3/lib/serverid.c
@@ -282,11 +282,12 @@ bool serverids_exist(const struct server_id *ids, int num_ids, bool *results)
TDB_DATA tdbkey;
NTSTATUS status;
- if (ids[i].unique_id == SERVERID_UNIQUE_ID_NOT_TO_VERIFY) {
- results[i] = true;
+ if (!results[i]) {
continue;
}
- if (!results[i]) {
+
+ if (ids[i].unique_id == SERVERID_UNIQUE_ID_NOT_TO_VERIFY) {
+ results[i] = true;
continue;
}