From 84b5a5cbcd5e1c9ff984cd37b35a67707ceb430b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 21 Aug 2012 12:57:28 +0200 Subject: [PATCH] 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 --- source3/lib/serverid.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index 1ab0d6958c8..1cda03b3a63 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; } -- 2.11.4.GIT