diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-21 12:57:28 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-24 13:43:32 +0200 |
commit | 84b5a5cbcd5e1c9ff984cd37b35a67707ceb430b (patch) | |
tree | 16a8d771af9e44e3329a5fcdbf5ecc6894a21d96 /source3/lib | |
parent | 95f3662bbd587af24c2ff5411318e9d466412ee9 (diff) | |
download | samba-84b5a5cbcd5e1c9ff984cd37b35a67707ceb430b.tar.gz |
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
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/serverid.c | 7 |
1 files 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; } |