From: Stefan Metzmacher Date: Tue, 21 Aug 2012 10:57:28 +0000 (+0200) Subject: s3:lib: SERVERID_UNIQUE_ID_NOT_TO_VERIFY only means not to verify the 'unique_id... X-Git-Tag: samba-4.0.0beta7~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84b5a5cbcd5e1c9ff984cd37b35a67707ceb430b;p=thirdparty%2Fsamba.git 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 --- 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; }