s3:lib: use server_id_is_disconnected() in serverids_exist()
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Aug 2012 15:52:56 +0000 (17:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Aug 2012 11:43:33 +0000 (13:43 +0200)
metze

source3/lib/serverid.c

index 8d6dc1f889045e42533cdd00487bff25d59e5370..61860977cf17da1d2974e56e4f3309d7f37a42f8 100644 (file)
@@ -300,6 +300,10 @@ bool serverids_exist(const struct server_id *ids, int num_ids, bool *results)
        for (idx=0; idx<num_ids; idx++) {
                results[idx] = false;
 
+               if (server_id_is_disconnected(&ids[idx])) {
+                       continue;
+               }
+
                if (procid_is_me(&ids[idx])) {
                        results[idx] = true;
                        continue;